awesome work dialog editor legit

This commit is contained in:
Peter Cottle 2013-01-10 21:21:53 -08:00
parent b7f1637562
commit 8086d2b2b1
7 changed files with 476 additions and 111 deletions

View file

@ -20,12 +20,15 @@ var BaseView = Backbone.View.extend({
}
},
render: function(HTML) {
renderAgain: function(HTML) {
// flexibility
var destination = this.getDestination();
HTML = HTML || this.template(this.JSON);
this.$el.html(HTML);
},
render: function(HTML) {
this.renderAgain(HTML);
var destination = this.getDestination();
$(destination).append(this.el);
}
});