Use adapter.read in loopDeps, instead of directly accessing the model.
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -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 | ... | ... |
-
Please register or sign in to post a comment