Fix settings multi save

We were not undelegating our events on the element which was causing the
view to live on indefinitely in the background with its events still
bound.
This commit is contained in:
Jacob Gable 2013-06-23 16:25:34 -05:00
parent e953aac252
commit 4810f410c4

View File

@ -61,6 +61,7 @@
Settings.Pane = Ghost.View.extend({ Settings.Pane = Ghost.View.extend({
destroy: function () { destroy: function () {
this.$el.removeClass('active'); this.$el.removeClass('active');
this.undelegateEvents();
}, },
render: function () { render: function () {