Properly remove any event listeners added by subnode control.

pull/3/head
Harshal Dhumal 2017-01-20 13:24:37 +00:00 committed by Dave Page
parent ac4178233b
commit 415119d581
1 changed files with 3 additions and 0 deletions

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');