38c357c6 by Adam Heath

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.
1 parent 283cd02f
...@@ -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 {
......
...@@ -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
......