Skip to content

Commit

Permalink
more flexible so can change from grail.findAll to a different selecto…
Browse files Browse the repository at this point in the history
…r engine simply by overriding only maria.ElementView.prototype.findAll
  • Loading branch information
petermichaux committed Dec 15, 2012
1 parent 2490a27 commit 18a5e5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ElementView.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ maria.ElementView.prototype.buildTemplate = function() {
eventType = matches[1],
selector = matches[2],
methodName = uiActions[key],
elements = maria.findAll(selector, this._rootEl);
elements = this.findAll(selector, this._rootEl);
for (var i = 0, ilen = elements.length; i < ilen; i++) {
maria.addEventListener(elements[i], eventType, this, methodName);
}
Expand Down

0 comments on commit 18a5e5f

Please sign in to comment.