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) -> ...@@ -118,7 +118,7 @@ loopDeps = (binder, callback) ->
118 keypath = dependency.substr 1 118 keypath = dependency.substr 1
119 else 119 else
120 dependency = dependency.split '.' 120 dependency = dependency.split '.'
121 model = binder.view.models[dependency.shift()] 121 model = Rivets.config.adapter.read binder.view.models dependency.shift()
122 keypath = dependency.join '.' 122 keypath = dependency.join '.'
123 123
124 callback model, keypath 124 callback model, keypath
......