234028e6 by Michael Richards

Don't assume that the model always exists on the binding when applying formatters to a value.

1 parent ceab081c
......@@ -42,7 +42,7 @@ class Rivets.Binding
args = formatter.split /\s+/
id = args.shift()
formatter = if @model[id] instanceof Function
formatter = if @model?[id] instanceof Function
@model[id]
else
@view.formatters[id]
......