Lines Matching defs:model

66     var comparator = function(model){ return model.id; };  argument
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
297 return _.map(attrs, function(model) { argument
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
602 sync: function(method, model, options) { argument
604 return Backbone.Model.prototype.sync.call(this, method, model, options); argument
615 var success = function(model, response, options) { argument
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
840 collection.each(function(model) { argument
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
1135 var model = { class in AnonymousFunctionf8dce19e8800
1157 var model = { class in AnonymousFunctionf8dce19e8b00
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
1504 collection.once('add', function(model, coll, options) { argument
1516 success: function(model, resp, options) { argument
1612 _addReference: function(model) { argument
1620 _removeReference: function(model) { argument
1764 collection.on('add', function(model, coll, options) { argument
1774 collection.on('add', function(model, coll, options) { argument