Permalink
Browse files

more flexible so can change from grail.findAll to a different selecto…

…r engine simply by overriding only maria.ElementView.prototype.findAll
  • Loading branch information...
1 parent 2490a27 commit 18a5e5f4fa4e2a7883d42ff13aff26fa62bc9f93 @petermichaux committed Dec 15, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/ElementView.js
View
@@ -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);
}

0 comments on commit 18a5e5f

Please sign in to comment.