Allow for iterate to be overridden thru the adapter.
Showing
1 changed file
with
4 additions
and
1 deletions
... | @@ -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 = | ... | ... |
-
Please register or sign in to post a comment