You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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();
The text was updated successfully, but these errors were encountered:
I can create a PR but it can be dangerous because it's a breaking change.
achinaou
changed the title
Can't use the CommonJS version properly
The plugin should return the NestedModel object instead of Backbone
Nov 18, 2015
achinaou
changed the title
The plugin should return the NestedModel object instead of Backbone
The plugin should return the NestedModel object instead of Backbone. (CommonJS, AMD)
Nov 24, 2015
When I
require("backbone-nested-model")
it returns the Backbone object but it shouldreturn the NestedModel object so you can instantiate or extend from it a new NestedModel object.
This is how it works now:
This is how it should be:
The text was updated successfully, but these errors were encountered: