Lines Matching refs:b
150 assert.deepEqual(model.invert(), {a: 'foo', b: 'bar', c: 'baz'});
156 var model = new Backbone.Model({a: 0, b: 1, c: 2});
163 var b = a.clone();
167 assert.equal(b.get('foo'), a.get('foo'), 'Foo should be the same on the clone.');
168 assert.equal(b.get('bar'), a.get('bar'), 'Bar should be the same on the clone.');
169 assert.equal(b.get('baz'), a.get('baz'), 'Baz should be the same on the clone.');
172 assert.equal(b.get('foo'), 1, 'Changing a parent attribute does not change the clone.');
261 return attr.a > 1 && attr.b != null;
264 model.set({a: 3, b: true});
267 return attr.a > 1 && attr.b != null;
508 var model = new Backbone.Model({a: 'a', b: 'b'});
641 doc.clear().set({id: 1, a: 1, b: 2, c: 3, d: 4});
646 doc.save({b: 2, d: 4}, {patch: true});
655 doc.clear().save({b: 2, d: 4}, {patch: true, attrs: {B: 1, D: 3}});
659 assert.deepEqual(doc.attributes, {b: 2, d: 4});
926 model.set({a: 'a', b: 'b', c: 'c'});
1192 model.set({b: 1});
1194 model.set({b: 0});
1214 model.set({b: true});
1215 model.set({b: true});
1336 model.set({b: 2}, {silent: true});
1340 model.set({a: 'a', b: 1, c: 'item'});
1342 assert.deepEqual(model.attributes, {a: 'c', b: 2});
1432 model.set({b: true}, {silent: true});