\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
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