Skip to content

Commit

Permalink
Patch sortable to fix reinitialization errors (and memory leaks)
Browse files Browse the repository at this point in the history
  • Loading branch information
daftspunk committed Jul 18, 2015
1 parent 7c16a74 commit 1f5ae0f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions assets/ui/vendor/sortable/jquery-sortable.js
Original file line number Diff line number Diff line change
Expand Up @@ -631,6 +631,10 @@
return val != that
})

// See https://github.com/johnny/jquery-sortable/pull/122
if(this.group)
this.group._destroy()

$.each(this.items || [], function(){
$.removeData(this, subContainerKey)
})
Expand Down

0 comments on commit 1f5ae0f

Please sign in to comment.