Skip to content

Commit

Permalink
Initiate handles in constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
rvangundy authored and rvangundy committed Oct 9, 2013
1 parent 7d101d2 commit 2dcd3c9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/DOMView.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ var EventEmitter = require('./EventEmitter.js');
function construct(data, template) {
this._data = data || this._data;
this.template = template || this.template;
this.handles = this.handles;

if (data) { bindViewToModel.call(this); }
render.call(this, true);

Expand Down

0 comments on commit 2dcd3c9

Please sign in to comment.