3a018796 by Michael Richards

Merge branch 'toplevel-keypath-support'

2 parents 1c10de2b 2b4d245f
...@@ -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
......