real teardown

This commit is contained in:
Peter Cottle 2012-12-24 13:50:17 -08:00
parent ad764c62eb
commit 56c6da35d2
2 changed files with 6 additions and 3 deletions

View file

@ -8744,7 +8744,8 @@ var ModalView = Backbone.View.extend({
}, },
tearDown: function() { tearDown: function() {
this.hide(); this.$el.html('');
$('body')[0].removeChild(this.el);
} }
}); });
@ -17161,7 +17162,8 @@ var ModalView = Backbone.View.extend({
}, },
tearDown: function() { tearDown: function() {
this.hide(); this.$el.html('');
$('body')[0].removeChild(this.el);
} }
}); });

View file

@ -148,7 +148,8 @@ var ModalView = Backbone.View.extend({
}, },
tearDown: function() { tearDown: function() {
this.hide(); this.$el.html('');
$('body')[0].removeChild(this.el);
} }
}); });