b4813fb7 by Adam Heath

Allow for iterate to be overridden thru the adapter.

1 parent f299a825
...@@ -254,7 +254,10 @@ getInputValue = (el) -> ...@@ -254,7 +254,10 @@ getInputValue = (el) ->
254 else el.value 254 else el.value
255 255
256 iterate = (collection, callback) -> 256 iterate = (collection, callback) ->
257 callback item, i for item, i in collection 257 if Rivets.config.adapter.iterate
258 Rivets.config.adapter.iterate collection, callback
259 else
260 callback(item, i) for item, i in collection
258 261
259 # Core binding routines. 262 # Core binding routines.
260 Rivets.binders = 263 Rivets.binders =
......