window focus back

This commit is contained in:
Peter Cottle 2012-12-24 13:41:36 -08:00
parent 93f6f3c6ca
commit 3664ad8b65
5 changed files with 177 additions and 15 deletions

View file

@ -8,6 +8,13 @@ var BaseView = Backbone.View.extend({
return this.destination || this.container.getInsideElement();
},
tearDown: function() {
this.$el.html('');
if (this.container) {
this.container.tearDown();
}
},
render: function(HTML) {
// flexibility
var destination = this.getDestination();