Merge pull request #86 from mi3ll/fix-no-sortable
FIX: Remove sortable only if it has been initialised
This commit is contained in:
commit
302f7c0dc1
|
@ -205,7 +205,9 @@
|
|||
});
|
||||
},
|
||||
onremove: function() {
|
||||
this.sortable("destroy");
|
||||
if(this.data('sortable')) {
|
||||
this.sortable("destroy");
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue