For a web-app I'm building, I'm really interested in recursing through an object tree and modifying nodes on the fly. There's an underscore mixin that promises that, underscore.loop, but I can't seem to pull it into my page. I get a script error:
Uncaught TypeError: Cannot call method 'mixin' of undefined
which is on line 33 of the tool.
Now, underscore.loop.js is pulled in after backbone.js and underscore-data.js.
- Both of these tools use Underscore, and
Underscore is definitely available after trying
underscore.loop.
So why can't underscore.loop.js see Underscore. It uses pretty much the same scoping and initialization semantics as underscore-data.js. Can anyone shed any light on this?