FIX: Don't try to remove sortable if it doesn't exist in the first place

This commit is contained in:
Mellisa Hankins 2015-03-04 10:40:53 +11:00
parent ad55ceda83
commit fe63b4a187

View File

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