Properly remove any event listeners added by subnode control.

This commit is contained in:
Harshal Dhumal
2017-01-20 13:24:37 +00:00
committed by Dave Page
parent ac4178233b
commit 415119d581

View File

@@ -1206,6 +1206,9 @@
if (this.grid) {
this.grid.remove();
}
if (this.collection) {
this.collection.off( "enteringEditMode");
}
},
clearInvalid: function() {
this.$el.removeClass('subnode-error');