mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-25 20:03:12 +03:00
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:
parent
e953aac252
commit
4810f410c4
@ -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 () {
|
||||||
|
Loading…
Reference in New Issue
Block a user