Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #360. Adds support for deep subModelType hierarchies. #362

Merged
merged 3 commits into from
Jul 23, 2013

Commits on Jun 13, 2013

  1. Fixes PaulUithol#360. Adds support for deep subModelType hierarchies.

    Recursively resolves the appropriate subModelType to instantiate in
    'Backbone.RelationalModel.build'. This allows subModelTypes to in turn declare
    their own subModelTypes.
    Gordon McNaughton committed Jun 13, 2013
    Configuration menu
    Copy the full SHA
    2b0de99 View commit details
    Browse the repository at this point in the history

Commits on Jun 26, 2013

  1. Need to initialize the superModel's heirarchy before initializing the…

    … current model's hierarchy.
    jrreed committed Jun 26, 2013
    Configuration menu
    Copy the full SHA
    8a69f3e View commit details
    Browse the repository at this point in the history

Commits on Jun 27, 2013

  1. Pulling the relation-inheritance logic out of Backbone.RelationalMode…

    …l.initializeModelHierarchy into it's own method so that initializing super-class relations doesn't cause the super-class's model hierarchy to become initialized. There are situations where initializing the super-class's model hierarchy during relation inheritance will prevent some relations from being inherited. Updated the logic in Backbone.RelationalModel.initializeModelHierarchy that recursively initializes the model hierarchy of subModels so that it doesn't initialize models that have already been initialized.
    jrreed committed Jun 27, 2013
    Configuration menu
    Copy the full SHA
    59b53bf View commit details
    Browse the repository at this point in the history