draggableDisable
| Project: | jQuery UI Backport |
| Version: | 5.x-1.0-beta1 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
I could not get draggableDisable to work. My firebug error:
jQuery.data is not a function
f()jquib.js (line 3396)
each([div#resizeMe_1.resizeMe], function(), undefined)jquib.js (line 592)
each(function(), undefined)jquib.js (line 122)
[Break on this error] eval('f = function() { var a = arguments; return this.each(function() { if(j...
Line 3396:
eval('f = function() { var a = arguments; return this.each(function() { if(jQuery(this).is(".ui-draggable")) jQuery.data(this, "ui-draggable")["'+cur+'"](a); }); }');
Replacing line 3396 with the following seems to solve the problem.
eval('f = function() { var a = arguments; return this.each(function() { if($(this).is(".ui-draggable")) $.data(this, "ui-draggable")["'+cur+'"](a); }); }');

#1
Same problem on line 4088:
eval('f = function() { var a = arguments; return this.each(function() { if(jQuery(this).is(".ui-resizable")) jQuery.data(this, "ui-resizable")["'+cur+'"](a); if(jQuery(this.parentNode).is(".ui-resizable")) jQuery.data(this, "ui-resizable")["'+cur+'"](a); }); }');TO
eval('f = function() { var a = arguments; return this.each(function() { if($(this).is(".ui-resizable")) $.data(this, "ui-resizable")["'+cur+'"](a); if($(this.parentNode).is(".ui-resizable")) $.data(this, "ui-resizable")["'+cur+'"](a); }); }');#2