backbone.composite-model.js
Function mixinCompositeModel
has 148 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Backbone.mixinCompositeModel = function (prototype) {
var originalSet = prototype.set,
originalToJSON = prototype.toJSON;
return _.extend(prototype, {
Function _updateComposite
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_updateComposite: function (attributes, options) {
// Creates a new instance of the child model or collection
function create(composite, parameters) {
var createOptions = _.extend({}, composite.options, options);
this[composite.property] = new composite.model(parameters,
Function _createCompositeMap
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_createCompositeMap: function (options) {
// Allow specifying the composite property as a function returning
// the actual configuration object
var thisComposite = this.composite,
optionsComposite = options.composite;