Null objects in underscore iteration functions #84

Closed
elwayman02 opened this Issue Oct 4, 2012 · 0 comments

Comments

Projects
None yet
2 participants
Contributor

elwayman02 commented Oct 4, 2012

Due to a change in the most recent version of underscore (1.4.0+), iterative functions such as _.each no longer support null objects as no-op arguments, as seen here: documentcloud/underscore#744

This causes the CollectionBinder to fail on line 101, where _.each is called on this._elManagers, which is undefined the first time you bind the CollectionBinder. Either this object should be defined when you initialize the CollectionBinder, or change the line to say the following:

_.each(this._elManagers || [], ...

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment