On Fri, Oct 16, 2009 at 3:22 PM, Brandon Ryall <[email protected]>wrote:
>
> After playing around with it a bit using firebug lite and the non-min
> version of jquery-ui I found that the bug appears to be a conflict
> with ui.draggable.js
> $.ui.plugin.add("draggable", "cursor", {
> start: function(event, ui) {
> var t = $('body'), o = $(this).data('draggable').options;
> if (t.css("cursor")) o._cursor = t.css("cursor");
> t.css("cursor", o.cursor);
> },
> stop: function(event, ui) {
> var o = $(this).data('draggable').options;
> if (o._cursor) $('body').css("cursor", o._cursor);
> }
> });
>
> More specifically that var o = $(this).data('draggable').options.
>
> Could this be because I'm assigning $.data() to a draggable item??
>
It shouldn't be a problem, unless you're causing that element to lose its
.data('draggable') somehow. That's where the draggable plugin instance is
stored.
As Dave mentioned, you've got a *lot* going on here. You'll have a much
easier time, and other people may even be able to help you, if you can
distill this down to a minimal test page. Keep removing things until you
still have the functionality you need (for testing this specific issue) and
are still seeing the issue, but nothing more. As long as you're still seeing
the issue, you know that whatever you've removed up to that point didn't
contain the problem. This will make it infinitely easier to isolate and
identify the source. Once you do, and fix it, then you can put everything
else back.
- Richard
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---