47c8859d by Adam Heath

Use adapter.read in loopDeps, instead of directly accessing the model.

1 parent 96a86af3
......@@ -118,7 +118,7 @@ loopDeps = (binder, callback) ->
keypath = dependency.substr 1
else
dependency = dependency.split '.'
model = binder.view.models[dependency.shift()]
model = Rivets.config.adapter.read binder.view.models dependency.shift()
keypath = dependency.join '.'
callback model, keypath
......