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
1fda314c
authored
2012-07-07 16:47:02 -0700
by
Michael Richards
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge pull request #12 from wrapp/feature/peformance-tweaks
Peformance tweaks
2 parents
f068c59b
df0996e3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
src/rivets.coffee
src/rivets.coffee
View file @
1fda314
...
...
@@ -60,11 +60,12 @@ class Rivets.View
# Builds the Rivets.Binding instances for the view.
build
:
=>
@
bindings
=
[]
bindingRegExp
=
@
bindingRegExp
()
for
node
in
@
el
.
getElementsByTagName
'*'
for
attribute
in
node
.
attributes
if
@
bindingRegExp
()
.
test
attribute
.
name
type
=
attribute
.
name
.
replace
@
bindingRegExp
()
,
''
if
bindingRegExp
.
test
attribute
.
name
type
=
attribute
.
name
.
replace
bindingRegExp
,
''
pipes
=
attribute
.
value
.
split
(
'|'
).
map
(
pipe
)
->
pipe
.
trim
()
path
=
pipes
.
shift
().
split
'.'
model
=
@
models
[
path
.
shift
()]
...
...
Please
register
or
sign in
to post a comment