Patch sortable to fix reinitialization errors (and memory leaks)

Refs https://github.com/johnny/jquery-sortable/pull/122
This commit is contained in:
Samuel Georges 2015-07-18 13:43:48 +10:00
parent c7aef3c58c
commit 15c23089c6
1 changed files with 4 additions and 0 deletions

View File

@ -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)
})