Null objects in underscore iteration functions #84

elwayman02 opened this Issue Oct 4, 2012 · 0 comments


None yet
2 participants

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 || [], ...


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