Permalink
Browse files

Merge branch 'master' of github.com:johnny/jquery-sortable

  • Loading branch information...
2 parents 7069e8f + 7e939ed commit 104567508308112f75b74a290085e049a0ba96fe @johnny committed May 18, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 source/js/jquery-sortable.js
View
4 source/js/jquery-sortable.js
@@ -393,8 +393,8 @@
this.containers.push(container);
},
removeContainer: function (container) {
- var i = this.containers.indexOf(container)
- remove(this.containers, i);
+ var i = $.inArray(container,this.containers);
+ i!==-1 && remove(this.containers, i);
},
scrolled: function (e) {
this.clearDimensions()

0 comments on commit 1045675

Please sign in to comment.