Skip to content

Commit cd715f7

Browse files
committed
Fix for browsers that don't support JS 1.6
1 parent 73c13bf commit cd715f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ui/jquery.ui.droppable.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ $.widget("ui.droppable", {
132132
else {
133133
var zStack = $.ui.ddmanager.zStack[draggable.options.scope];
134134

135-
if(zStack.indexOf(this) == -1) {
135+
if($.inArray(this, zStack) == -1) {
136136
var lastHighest = zStack[zStack.length - 1];
137137

138138
zStack.push(this);
@@ -165,7 +165,7 @@ $.widget("ui.droppable", {
165165

166166
var lastHighest = zStack[zStack.length - 1];
167167

168-
zStack.splice(zStack.indexOf(this), 1);
168+
zStack.splice($.inArray(this, zStack), 1);
169169

170170
zStack.sort(this._sortHighest);
171171

0 commit comments

Comments
 (0)