Lines Matching refs:b
3 var a, b, c, d, e, col, otherCol; variable
9 b = new Backbone.Model({id: 2, label: 'b'});
13 col = new Backbone.Collection([a, b, c, d]);
82 assert.equal(col.get(2), b);
107 assert.ok(col.has(b));
111 assert.ok(col.has(b.id));
115 assert.ok(col.has(b.cid));
363 result = col.remove([c, b]);
365 assert.equal(result[0], b, 'only returns removed models');
406 var collection = new Backbone.Collection([{a: 'a'}, {b: 'b'}, {c: 'c'}]);
413 var collection = new Backbone.Collection([{a: 'a'}, {b: 'b'}, {c: 'c'}]);
700 {a: 1, b: 2},
701 {a: 2, b: 2},
707 assert.equal(coll.where({b: 1}).length, 0);
708 assert.equal(coll.where({b: 2}).length, 2);
709 assert.equal(coll.where({a: 1, b: 2}).length, 1);
721 assert.equal(col.indexOf(b), 1);
737 assert.deepEqual(col.difference([c, d]), [a, b]);
749 var model = new Backbone.Model({a: 4, b: 1, e: 3});
751 {a: 1, b: 1},
752 {a: 2, b: 1, c: 1},
753 {a: 3, b: 1},
767 assert.equal(coll.every({b: 1}), true);
778 assert.equal(coll.findIndex({b: 1}), 0);
779 assert.equal(coll.findIndex({b: 9}), -1);
780 assert.equal(coll.findLastIndex({b: 1}), 3);
781 assert.equal(coll.findLastIndex({b: 9}), -1);
1450 collection.add({id: 1, b: 1}, {merge: true}); // don't sort, no comparator change
1466 collection.add({id: 1, b: 1}, {merge: true}); // do sort, model change
1488 var opts = {a: 1, b: 2}; property in AnonymousFunctionf8dce19eb200.opts