Oops; when I simplified the external interface, I neglected to test the
rebuilt lib/rivets.js, so didn't notice that I saved the current model with the wrong name into the binding's options.
Showing
3 changed files
with
2 additions
and
2 deletions
... | @@ -267,7 +267,7 @@ | ... | @@ -267,7 +267,7 @@ |
267 | splitPath = path.split(/\.|:/); | 267 | splitPath = path.split(/\.|:/); |
268 | options.formatters = pipes; | 268 | options.formatters = pipes; |
269 | options.bypass = path.indexOf(':') !== -1; | 269 | options.bypass = path.indexOf(':') !== -1; |
270 | options.models = _this.models; | 270 | options.bindContext = _this.models; |
271 | if (splitPath[0]) { | 271 | if (splitPath[0]) { |
272 | model = _this.models[splitPath.shift()]; | 272 | model = _this.models[splitPath.shift()]; |
273 | } else { | 273 | } else { | ... | ... |
This diff is collapsed.
Click to expand it.
... | @@ -173,7 +173,7 @@ class Rivets.View | ... | @@ -173,7 +173,7 @@ class Rivets.View |
173 | splitPath = path.split /\.|:/ | 173 | splitPath = path.split /\.|:/ |
174 | options.formatters = pipes | 174 | options.formatters = pipes |
175 | options.bypass = path.indexOf(':') != -1 | 175 | options.bypass = path.indexOf(':') != -1 |
176 | options.models = @models | 176 | options.bindContext = @models |
177 | if splitPath[0] | 177 | if splitPath[0] |
178 | model = @models[splitPath.shift()] | 178 | model = @models[splitPath.shift()] |
179 | else | 179 | else | ... | ... |
-
Please register or sign in to post a comment