Skip to content
This repository has been archived by the owner on Mar 20, 2021. It is now read-only.

this.model is null in collection view's initialize method #409

Open
liorcode opened this issue Jan 19, 2015 · 0 comments
Open

this.model is null in collection view's initialize method #409

liorcode opened this issue Jan 19, 2015 · 0 comments

Comments

@liorcode
Copy link
Contributor

This commit: 4dc07ff introduced a new bug: this.model is null in a collection view's initialize method.

I believe this is because options[type] is nullified: it works fine for views, as their constructor calls obj.ctor which calls setModel, but collection view doesn't have a constructor - so it doesn't call setModel (at least not before initialize), and therefore this.model is null (this._model is defined of course..)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant