aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorAlexander Schmitz <arschmitz@gmail.com>2015-05-13 21:58:16 -0400
committerAlexander Schmitz <arschmitz@gmail.com>2015-05-20 14:27:56 -0400
commit35ef105430e1c3295cd18841ce2cf2a79b26d69a (patch)
tree1e71f24b326659d6037ad249761c44789210a24e /ui
parentce949812b671d26f82e21f1856d73fde2f43f2dd (diff)
downloadjquery-ui-35ef105430e1c3295cd18841ce2cf2a79b26d69a.tar.gz
jquery-ui-35ef105430e1c3295cd18841ce2cf2a79b26d69a.zip
Droppable: Remove core event/alias and deprecated module dependencies
Diffstat (limited to 'ui')
-rw-r--r--ui/droppable.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/droppable.js b/ui/droppable.js
index 98be34bab..74d54d077 100644
--- a/ui/droppable.js
+++ b/ui/droppable.js
@@ -348,7 +348,7 @@ $.ui.ddmanager = {
},
dragStart: function( draggable, event ) {
// Listen for scrolling so that if the dragging causes scrolling the position of the droppables can be recalculated (see #5003)
- draggable.element.parentsUntil( "body" ).bind( "scroll.droppable", function() {
+ draggable.element.parentsUntil( "body" ).on( "scroll.droppable", function() {
if ( !draggable.options.refreshPositions ) {
$.ui.ddmanager.prepareOffsets( draggable, event );
}
@@ -409,7 +409,7 @@ $.ui.ddmanager = {
},
dragStop: function( draggable, event ) {
- draggable.element.parentsUntil( "body" ).unbind( "scroll.droppable" );
+ draggable.element.parentsUntil( "body" ).off( "scroll.droppable" );
// Call prepareOffsets one final time since IE does not fire return scroll events when overflow was caused by drag (see #5003)
if ( !draggable.options.refreshPositions ) {
$.ui.ddmanager.prepareOffsets( draggable, event );