Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
brainfood
/
rivets
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
b5e51cfc
authored
2012-07-13 01:07:39 -0700
by
Michael Richards
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Use `on` as the event binding prefix instead of `event`.
1 parent
4d52813d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
lib/rivets.js
src/rivets.coffee
lib/rivets.js
View file @
b5e51cf
...
...
@@ -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
++
)
{
...
...
src/rivets.coffee
View file @
b5e51cf
...
...
@@ -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
...
...
Please
register
or
sign in
to post a comment