Skip to content
This repository was archived by the owner on Jul 7, 2026. It is now read-only.
This repository was archived by the owner on Jul 7, 2026. It is now read-only.

The plugin should return the NestedModel object instead of Backbone. (CommonJS, AMD) #150

Description

@achinaou

When I require("backbone-nested-model") it returns the Backbone object but it should
return the NestedModel object so you can instantiate or extend from it a new NestedModel object.

This is how it works now:

var Backbone = require("backbone-nested-model");

var User = Backbone.NestedModel.extend({
});

var user = new User();

This is how it should be:

var NestedModel = require("backbone-nested-model");

var User = NestedModel.extend({
});

var user = new User();

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions