e1cfa801 by Michael Richards

Make sure that we also shallow merge the adapters object onto the Rivets.View in…

…stnace in the constructor. [#178]
1 parent d0167fab
......@@ -238,7 +238,7 @@ class Rivets.View
constructor: (@els, @models, @options = {}) ->
@els = [@els] unless (@els.jquery || @els instanceof Array)
for option in ['config', 'binders', 'formatters']
for option in ['config', 'binders', 'formatters', 'adapters']
@[option] = {}
@[option][k] = v for k, v of @options[option] if @options[option]
@[option][k] ?= v for k, v of Rivets[option]
......@@ -262,7 +262,6 @@ class Rivets.View
bindingRegExp = @bindingRegExp()
componentRegExp = @componentRegExp()
buildBinding = (binding, node, type, declaration) =>
options = {}
......