]> source.dussan.org Git - jquery-ui.git/commitdiff
core: reverted change that caused all plugins to malfunction - will later be introduc...
authorPaul Bakaus <paul.bakaus@googlemail.com>
Sun, 25 May 2008 16:41:01 +0000 (16:41 +0000)
committerPaul Bakaus <paul.bakaus@googlemail.com>
Sun, 25 May 2008 16:41:01 +0000 (16:41 +0000)
ui/source/ui.core.js
ui/source/ui.sortable.js

index db81ad8a8a4edb21f034a7f4603d298ce2e6cb5d..e9621f6dc701184acc7c6dadc9deb415896db294 100644 (file)
@@ -26,7 +26,7 @@
                                \r
                                for (var i = 0; i < set.length; i++) {\r
                                        if (instance.options[set[i][0]]) {\r
-                                               set[i][1].apply(instance, args);\r
+                                               set[i][1].apply(instance.element, args);\r
                                        }\r
                                }\r
                        }       \r
index 4f48c1498ff6b7006ac66e8c2abecdc67b4a27fe..8d9c7822d7672a4068ab84f5c3f51011b13b0a9c 100644 (file)
                        if((o.containment.left != undefined || o.containment.constructor == Array) && !o._containment) return;\r
                        if(!o._containment) o._containment = o.containment;\r
 \r
-                       if(o._containment == 'parent') o._containment = this.element[0].parentNode;\r
-                       if(o._containment == 'sortable') o._containment = this.element[0];\r
+                       if(o._containment == 'parent') o._containment = this[0].parentNode;\r
+                       if(o._containment == 'sortable') o._containment = this[0];\r
                        if(o._containment == 'document') {\r
                                o.containment = [\r
                                        0,\r