Lines Matching +defs:e +defs:model

66     var comparator = function(model){ return model.id; };  argument
69 model: Model, property
92 var collection = new Backbone.Collection([model], {model: MongoModel}); property
133 collection.on('change:name', function(model) { assert.ok(this.get(model)); }); argument
159 col.on('add', function(model, collection, options){ argument
254 m.on('add', function(model, collection) { argument
264 col1.on('add', function(model, collection) { argument
269 col2.on('add', function(model, collection) { argument
288 var Col = Backbone.Collection.extend({model: Model}); property
297 return _.map(attrs, function(model) { argument
303 collection.add({model: {id: 1, name: 'Alf'}}, {parse: true, merge: true}); property
346 col.on('remove', function(model, collection, options) { argument
462 m.on('remove', function(model, collection) { argument
472 col1.on('remove', function(model, collection) { argument
477 col2.on('remove', function(model, collection) { argument
496 m.sync = function(method, model, options) { options.success(); }; argument
536 collection.sync = function(method, model, options) { options.error(); }; argument
589 model: ValidatingModel property
602 sync: function(method, model, options) { argument
604 return Backbone.Model.prototype.sync.call(this, method, model, options); argument
609 model: Model, property
615 var success = function(model, response, options) { argument
645 model: ValidatingModel property
684 model: FooModel property
716 assert.equal(col.map(function(model){ return model.get('label'); }).join(' '), 'a b c d'); argument
717 assert.equal(col.some(function(model){ return model.id === 100; }), false); argument
718 assert.equal(col.some(function(model){ return model.id === 0; }), true); argument
741 assert.deepEqual(col.groupBy(function(model){ return model.id; })[first.id], [first]); argument
742 assert.deepEqual(col.countBy(function(model){ return model.id; }), {0: 1, 1: 1, 2: 1, 3: 1}); argument
743 assert.deepEqual(col.sortBy(function(model){ return model.id; })[0], col.at(3)); argument
749 var model = new Backbone.Model({a: 4, b: 1, e: 3}); property
837 var collection = new (Backbone.Collection.extend({model: Model}))(); property
840 collection.each(function(model) { argument
907 model: Model property
954 var collection = new Backbone.Collection([{id: 1}], {model: Model}); property
973 comparator: function(model){ return model.id; } argument
1078 var values = _.map(collection.sortBy('x'), function(model) { argument
1097 collection.on('add', function(model) { argument
1111 model: Backbone.Model.extend({ property
1135 var model = { variable
1139 model: Backbone.Model.extend({ property
1157 var model = { variable
1161 model: Backbone.Model.extend({ property
1196 collection.on('add', function(model) { argument
1199 collection.on('change', function(model) { argument
1202 collection.on('remove', function(model) { argument
1229 collection.off('remove').on('remove', function(model) { argument
1260 model: Backbone.Model.extend({ property
1280 var collection = new Backbone.Collection([m], {model: Model}); property
1299 var Collection = Backbone.Collection.extend({model: Model}); property
1312 model: Model, property
1318 {model: {id: 1}}, property
1319 {model: {id: 2}} property
1374 model: Backbone.Model.extend({idAttribute: '_id'}) property
1478 model: Model, property
1504 collection.once('add', function(model, coll, options) { argument
1516 success: function(model, resp, options) { argument
1548 model: Item property
1612 _addReference: function(model) { argument
1620 _removeReference: function(model) { argument
1670 var StoogeCollection = Backbone.Collection.extend({model: Stooge}); property
1682 model: function(attrs) { method
1698 model: Backbone.Model.extend({ property
1714 model: function(attrs) { method
1734 model: function(attrs) { method
1748 model: function(attrs) { method
1764 collection.on('add', function(model, coll, options) { argument
1774 collection.on('add', function(model, coll, options) { argument
1880 model: Model property