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 @@
splitPath = path.split(/\.|:/);
options.formatters = pipes;
options.bypass = path.indexOf(':') !== -1;
options.models = _this.models;
options.bindContext = _this.models;
if (splitPath[0]) {
model = _this.models[splitPath.shift()];
} else {
......
......@@ -173,7 +173,7 @@ class Rivets.View
splitPath = path.split /\.|:/
options.formatters = pipes
options.bypass = path.indexOf(':') != -1
options.models = @models
options.bindContext = @models
if splitPath[0]
model = @models[splitPath.shift()]
else
......