Merge pull request #86 from mi3ll/fix-no-sortable

FIX: Remove sortable only if it has been initialised
This commit is contained in:
Marcus 2015-03-04 12:28:24 +11:00
commit 302f7c0dc1
1 changed files with 3 additions and 1 deletions

View File

@ -205,7 +205,9 @@
});
},
onremove: function() {
this.sortable("destroy");
if(this.data('sortable')) {
this.sortable("destroy");
}
}
});