Lines Matching full:remove

342   QUnit.test('remove', function(assert) {
346 col.on('remove', function(model, collection, options) {
351 result = col.remove(d);
354 //if we try to remove d again, it's not going to actually get removed
355 result = col.remove(d);
360 result = col.remove([c, d]);
363 result = col.remove([c, b]);
366 result = col.remove([]);
370 QUnit.test('add and remove return values', function(assert) {
394 result = collection.remove({id: 6});
398 list = collection.remove([{id: 2}, {id: 8}]);
419 QUnit.test('events are unbound on remove', function(assert) {
433 QUnit.test('remove in multiple collections', function(assert) {
442 m2.on('remove', function() {
450 col1.remove(m1);
453 col2.remove(m1);
458 QUnit.test('remove same model in multiple collection', function(assert) {
462 m.on('remove', function(model, collection) {
472 col1.on('remove', function(model, collection) {
477 col2.on('remove', function(model, collection) {
482 col2.remove(m);
487 col1.remove(m);
888 QUnit.test('#574, remove its own reference to the .models array.', function(assert) {
894 collection.remove(collection.models);
1195 // Test add/change/remove events
1202 collection.on('remove', function(model) {
1206 // remove: false doesn't remove any models
1207 collection.set([], {remove: false});
1218 // add: false, remove: false only merges existing models
1219 collection.set([m1, {id: 2, a: 0}, m3, {id: 4}], {add: false, remove: false});
1223 // default options add/remove/merge as appropriate
1229 collection.off('remove').on('remove', function(model) {
1251 collection.set([m1, m1, m1, m2, m2], {remove: false});
1269 collection.set([m1, m1, m1, m2, m2], {remove: false});
1347 collection.set([{id: 1}, {id: 2}], {remove: false});
1608 var calls = {add: 0, remove: 0}; property in AnonymousFunctionf8dce19ebe00.calls
1622 calls.remove++;
1632 collection.remove(model);
1635 assert.equal(calls.remove, 1);
1843 collection.remove([{id: 1}, {id: 2}]);
1846 QUnit.test('remove does not trigger `update` when nothing removed', function(assert) {
1850 collection.remove([{id: 3}]);
1904 QUnit.test("#3711 - remove's `update` event returns one removed model", function(assert) {
1913 collection.remove(model);
1916 QUnit.test("#3711 - remove's `update` event returns multiple removed models", function(assert) {
1928 collection.remove([model, model2]);