Make all bindings store a reference to their view.
Showing
1 changed file
with
4 additions
and
1 deletions
... | @@ -159,7 +159,10 @@ class Rivets.View | ... | @@ -159,7 +159,10 @@ class Rivets.View |
159 | type = type.replace iterationRegExp, '' | 159 | type = type.replace iterationRegExp, '' |
160 | options.special = "iteration" | 160 | options.special = "iteration" |
161 | 161 | ||
162 | @bindings.push new Rivets.Binding node, type, model, keypath, options | 162 | binding = new Rivets.Binding node, type, model, keypath, options |
163 | binding.view = @ | ||
164 | |||
165 | @bindings.push binding | ||
163 | 166 | ||
164 | for el in @els | 167 | for el in @els |
165 | parseNode el | 168 | parseNode el | ... | ... |
-
Please register or sign in to post a comment