Use `on` as the event binding prefix instead of `event`.
Showing
2 changed files
with
2 additions
and
2 deletions
... | @@ -100,7 +100,7 @@ | ... | @@ -100,7 +100,7 @@ |
100 | var attribute, bindType, bindingRegExp, eventRegExp, keypath, model, node, path, pipe, pipes, type, _i, _len, _ref, _results; | 100 | var attribute, bindType, bindingRegExp, eventRegExp, keypath, model, node, path, pipe, pipes, type, _i, _len, _ref, _results; |
101 | this.bindings = []; | 101 | this.bindings = []; |
102 | bindingRegExp = this.bindingRegExp(); | 102 | bindingRegExp = this.bindingRegExp(); |
103 | eventRegExp = /^event-/; | 103 | eventRegExp = /^on-/; |
104 | _ref = this.el.getElementsByTagName('*'); | 104 | _ref = this.el.getElementsByTagName('*'); |
105 | _results = []; | 105 | _results = []; |
106 | for (_i = 0, _len = _ref.length; _i < _len; _i++) { | 106 | for (_i = 0, _len = _ref.length; _i < _len; _i++) { | ... | ... |
... | @@ -66,7 +66,7 @@ class Rivets.View | ... | @@ -66,7 +66,7 @@ class Rivets.View |
66 | build: => | 66 | build: => |
67 | @bindings = [] | 67 | @bindings = [] |
68 | bindingRegExp = @bindingRegExp() | 68 | bindingRegExp = @bindingRegExp() |
69 | eventRegExp = /^event-/ | 69 | eventRegExp = /^on-/ |
70 | for node in @el.getElementsByTagName '*' | 70 | for node in @el.getElementsByTagName '*' |
71 | for attribute in node.attributes | 71 | for attribute in node.attributes |
72 | if bindingRegExp.test attribute.name | 72 | if bindingRegExp.test attribute.name | ... | ... |
-
Please register or sign in to post a comment