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

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

@liorcode

Description

@liorcode

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..)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions