Lines Matching refs:collection
7 var doc, collection; variable
18 collection = new Klass();
19 collection.add(doc);
29 assert.equal(this.collection, collection);
32 var model = new Model({}, {collection: collection});
34 assert.equal(model.collection, collection);
75 var model = new Model({}, {collection: collection});
77 assert.equal(model.collection, collection);
85 assert.equal(this.collection, undefined);
90 var model = new Model({id: 'foo'}, {collection: collection});
91 assert.equal(model.collection, collection);
112 doc.collection.url = '/collection/';
114 doc.collection = null;
116 doc.collection = collection;