Lines Matching refs:collection

289 	function find(collection, matcher) {  argument
292 forEach(collection, function (val, key) {
309 function findIndex(collection, matcher) { argument
311 var idx = isArray$2(collection) ? -1 : undefined;
312 forEach(collection, function (val, key) {
329 function filter(collection, matcher) { argument
331 forEach(collection, function (val, key) {
348 function forEach(collection, iterator) { argument
351 if (isUndefined$1(collection)) {
355 var convertKey = isArray$2(collection) ? toNum : identity;
357 for (var key in collection) {
358 if (has(collection, key)) {
359 val = collection[key];
398 function reduce(collection, iterator, result) { argument
399 forEach(collection, function (value, idx) {
414 function every(collection, matcher) { argument
415 return !!reduce(collection, function (matches, val, key) {
429 function some(collection, matcher) { argument
430 return !!find(collection, matcher);
442 function map$1(collection, fn) { argument
444 forEach(collection, function (val, key) {
457 function keys(collection) { argument
458 return collection && Object.keys(collection) || [];
468 function size(collection) { argument
469 return keys(collection).length;
479 function values(collection) { argument
480 return map$1(collection, function (val) {
493 function groupBy(collection, extractor) { argument
496 forEach(collection, function (val) {
534 function sortBy(collection, extractor) { argument
537 forEach(collection, function (value, key) {
2954 function remove(collection, element) { argument
2956 if (!collection || !element) {
2960 var idx = collection.indexOf(element);
2963 collection.splice(idx, 1);
2977 function add(collection, element, idx) { argument
2979 if (!collection || !element) {
2987 var currentIdx = collection.indexOf(element);
3000 collection.splice(currentIdx, 1);
3012 collection.splice(idx, 0, element);
3016 collection.push(element);
3030 function indexOf(collection, element) { argument
3032 if (!collection || !element) {
3036 return collection.indexOf(element);
5837 var collection = {};
5859 function extend(collection, refs, property, target) { argument
5870 Object.defineProperty(collection, 'remove', {
5891 Object.defineProperty(collection, 'contains', {
5906 Object.defineProperty(collection, 'add', {
5942 Object.defineProperty(collection, '__refs_collection', {
5946 return collection;
5950 function isExtended(collection) { argument
5951 return collection.__refs_collection === true;
5954 collection.extend = extend;
5956 collection.isExtended = isExtended;
5958 var Collection = collection;
5966 var collection = Collection.extend(target[property.name] || [], ref, property, target);
5970 value: collection
5973 if (collection.length) {
5975 collection.forEach(function(o) {
6097 if (property.collection) {
6106 var collection = target[property.name];
6108 if (!Collection.isExtended(collection)) {
6112 return collection;
6126 if (property.collection) {
6139 if (property.collection) {
6151 objectRefs.exports.Collection = collection;
6155 …var parentRefs = new Refs({ name: 'children', enumerable: true, collection: true }, { name: 'paren…
6156 …labelRefs = new Refs({ name: 'labels', enumerable: true, collection: true }, { name: 'labelTarget'…
6157 attacherRefs = new Refs({ name: 'attachers', collection: true }, { name: 'host' }),
6158 outgoingRefs = new Refs({ name: 'outgoing', collection: true }, { name: 'source' }),
6159 incomingRefs = new Refs({ name: 'incoming', collection: true }, { name: 'target' });
10166 var collection = element.get(property.name),
10167 idx = collection.indexOf(r);
10172 idx = collection.length;
10178 collection.splice(idx, 1);
10182 collection[idx] = reference;
46477 function saveClear(collection, removeFn) { argument
46483 if (!collection) {
46489 while ((e = collection[0])) {
46493 return collection;
47702 function addPreviewGfx(collection, dragGroup) { argument
47703 forEach(collection, function(element) {