e4d21fdb by Michael Richards

Make all bindings store a reference to their view.

1 parent bbc1d12f
...@@ -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
......