diff options
author | Paul Bakaus <paul.bakaus@googlemail.com> | 2008-05-25 16:41:01 +0000 |
---|---|---|
committer | Paul Bakaus <paul.bakaus@googlemail.com> | 2008-05-25 16:41:01 +0000 |
commit | 0f9bb627ee2337b980cf4a3c8627f6ac5b3d87ef (patch) | |
tree | fb503ff8d20184b71b889b5a176ab12f141ecf9a /ui/source | |
parent | 70702aee59f49382cb660d59df7a814c099a6b11 (diff) | |
download | jquery-ui-0f9bb627ee2337b980cf4a3c8627f6ac5b3d87ef.tar.gz jquery-ui-0f9bb627ee2337b980cf4a3c8627f6ac5b3d87ef.zip |
core: reverted change that caused all plugins to malfunction - will later be introduced when the tests are ready.
Diffstat (limited to 'ui/source')
-rw-r--r-- | ui/source/ui.core.js | 2 | ||||
-rw-r--r-- | ui/source/ui.sortable.js | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/ui/source/ui.core.js b/ui/source/ui.core.js index db81ad8a8..e9621f6dc 100644 --- a/ui/source/ui.core.js +++ b/ui/source/ui.core.js @@ -26,7 +26,7 @@ for (var i = 0; i < set.length; i++) {
if (instance.options[set[i][0]]) {
- set[i][1].apply(instance, args);
+ set[i][1].apply(instance.element, args);
}
}
}
diff --git a/ui/source/ui.sortable.js b/ui/source/ui.sortable.js index 4f48c1498..8d9c7822d 100644 --- a/ui/source/ui.sortable.js +++ b/ui/source/ui.sortable.js @@ -544,8 +544,8 @@ if((o.containment.left != undefined || o.containment.constructor == Array) && !o._containment) return;
if(!o._containment) o._containment = o.containment;
- if(o._containment == 'parent') o._containment = this.element[0].parentNode;
- if(o._containment == 'sortable') o._containment = this.element[0];
+ if(o._containment == 'parent') o._containment = this[0].parentNode;
+ if(o._containment == 'sortable') o._containment = this[0];
if(o._containment == 'document') {
o.containment = [
0,
|