8dabc199 by Paul Jones

Don't fail if Rivets.config.formatters isn't set

1 parent 5b6f9ed2
......@@ -26,7 +26,10 @@ class Rivets.Binding
for formatter in @formatters
args = formatter.split /\s+/
id = args.shift()
value = (Rivets.config.formatters[id] || @model[id]) value, args...
value = if Rivets.config.formatters && Rivets.config.formatters[id]
Rivets.config.formatters[id] value, args...
else
@model[id] value, args...
value
......