summaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.droppable.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2011-08-12 10:06:52 -0400
committerScott González <scott.gonzalez@gmail.com>2011-08-12 10:06:52 -0400
commit7b3e6a85c189e703573edd662ced72a3d5eec425 (patch)
treef45f78f8ed20c740024186b0d1eed23bd6767272 /ui/jquery.ui.droppable.js
parent930c65011c28dfef4b206d476d6dd1da2c131bce (diff)
downloadjquery-ui-7b3e6a85c189e703573edd662ced72a3d5eec425.tar.gz
jquery-ui-7b3e6a85c189e703573edd662ced72a3d5eec425.zip
Droppable: Don't use .parentsUntil(). Fixes #7530 - Droppable fails on a.element.parentsuntil in version 1.8.14.
Diffstat (limited to 'ui/jquery.ui.droppable.js')
-rw-r--r--ui/jquery.ui.droppable.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/jquery.ui.droppable.js b/ui/jquery.ui.droppable.js
index 58a1c4bc1..dabf29d6c 100644
--- a/ui/jquery.ui.droppable.js
+++ b/ui/jquery.ui.droppable.js
@@ -240,7 +240,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.parents( ":not(body,html)" ).bind( "scroll.droppable", function() {
if( !draggable.options.refreshPositions ) $.ui.ddmanager.prepareOffsets( draggable, event );
});
},
@@ -287,7 +287,7 @@ $.ui.ddmanager = {
},
dragStop: function( draggable, event ) {
- draggable.element.parentsUntil( "body" ).unbind( "scroll.droppable" );
+ draggable.element.parents( ":not(body,html)" ).unbind( "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 );
}