diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2013-03-19 16:53:35 +0100 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2013-03-19 16:53:35 +0100 |
commit | 90135b27f896506776f3ce9fdbd27c9e957b924a (patch) | |
tree | 11591919e5083e81b8288cb979eca7fbdf3e3dd6 /ui/jquery.ui.droppable.js | |
parent | 4fce29e9356d7cbe2ccbdc29a391603580e852de (diff) | |
download | jquery-ui-90135b27f896506776f3ce9fdbd27c9e957b924a.tar.gz jquery-ui-90135b27f896506776f3ce9fdbd27c9e957b924a.zip |
Widget tests: Use instance method. Also replace a few instances of $.data in widget implementations.
Diffstat (limited to 'ui/jquery.ui.droppable.js')
-rw-r--r-- | ui/jquery.ui.droppable.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/jquery.ui.droppable.js b/ui/jquery.ui.droppable.js index 34342d33d..6bc4b594d 100644 --- a/ui/jquery.ui.droppable.js +++ b/ui/jquery.ui.droppable.js @@ -152,7 +152,7 @@ $.widget("ui.droppable", { } this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function() { - var inst = $.data(this, "ui-droppable"); + var inst = $( this ).droppable( "instance" ); if( inst.options.greedy && !inst.options.disabled && @@ -331,11 +331,11 @@ $.ui.ddmanager = { // find droppable parents with same scope scope = this.options.scope; parent = this.element.parents(":data(ui-droppable)").filter(function () { - return $.data(this, "ui-droppable").options.scope === scope; + return $(this).droppable( "instance" ).options.scope === scope; }); if (parent.length) { - parentInstance = $.data(parent[0], "ui-droppable"); + parentInstance = $( parent[ 0 ] ).droppable( "instance" ); parentInstance.greedyChild = (c === "isover"); } } |