diff --git a/Sortable.html b/Sortable.html
index 82ec380..e6d6b6e 100644
--- a/Sortable.html
+++ b/Sortable.html
@@ -61,9 +61,10 @@
},
detached: function() {
- this.sortable.destroy()
+ this.destroy()
},
+
initialize: function() {
var templates = this.querySelectorAll("template[is='dom-repeat']")
@@ -122,6 +123,12 @@
},
+ destroy: function() {
+ if(this.sortable) {
+ this.sortable.destroy()
+ }
+ },
+
groupChanged : function(value) { this.sortable && this.sortable.option("group", value) },
sortChanged : function(value) { this.sortable && this.sortable.option("sort", value) },
disabledChanged : function(value) { this.sortable && this.sortable.option("disabled", value) },