Merge branch 'toplevel-keypath-support'
Showing
1 changed file
with
5 additions
and
1 deletions
... | @@ -150,8 +150,12 @@ class Rivets.View | ... | @@ -150,8 +150,12 @@ class Rivets.View |
150 | path = context.shift() | 150 | path = context.shift() |
151 | splitPath = path.split /\.|:/ | 151 | splitPath = path.split /\.|:/ |
152 | options.formatters = pipes | 152 | options.formatters = pipes |
153 | model = @models[splitPath.shift()] | ||
154 | options.bypass = path.indexOf(':') != -1 | 153 | options.bypass = path.indexOf(':') != -1 |
154 | if splitPath[0] | ||
155 | model = @models[splitPath.shift()] | ||
156 | else | ||
157 | model = @models | ||
158 | splitPath.shift() | ||
155 | keypath = splitPath.join '.' | 159 | keypath = splitPath.join '.' |
156 | 160 | ||
157 | if model | 161 | if model | ... | ... |
-
Please register or sign in to post a comment