b5e51cfc by Michael Richards

Use `on` as the event binding prefix instead of `event`.

1 parent 4d52813d
......@@ -100,7 +100,7 @@
var attribute, bindType, bindingRegExp, eventRegExp, keypath, model, node, path, pipe, pipes, type, _i, _len, _ref, _results;
this.bindings = [];
bindingRegExp = this.bindingRegExp();
eventRegExp = /^event-/;
eventRegExp = /^on-/;
_ref = this.el.getElementsByTagName('*');
_results = [];
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
......
......@@ -66,7 +66,7 @@ class Rivets.View
build: =>
@bindings = []
bindingRegExp = @bindingRegExp()
eventRegExp = /^event-/
eventRegExp = /^on-/
for node in @el.getElementsByTagName '*'
for attribute in node.attributes
if bindingRegExp.test attribute.name
......