Lines Matching refs:context

67   var optimizeCb = function(func, context, argCount) {  argument
68 if (context === void 0) return func;
71 return func.call(context, value);
76 return func.call(context, value, index, collection);
79 return func.call(context, accumulator, value, index, collection);
83 return func.apply(context, arguments);
92 var cb = function(value, context, argCount) { argument
93 if (_.iteratee !== builtinIteratee) return _.iteratee(value, context);
95 if (_.isFunction(value)) return optimizeCb(value, context, argCount);
103 _.iteratee = builtinIteratee = function(value, context) {
104 return cb(value, context, Infinity);
164 _.each = _.forEach = function(obj, iteratee, context) {
165 iteratee = optimizeCb(iteratee, context);
181 _.map = _.collect = function(obj, iteratee, context) {
182 iteratee = cb(iteratee, context);
212 return function(obj, iteratee, memo, context) { argument
214 return reducer(obj, optimizeCb(iteratee, context, 4), memo, initial);
226 _.find = _.detect = function(obj, predicate, context) {
228 var key = keyFinder(obj, predicate, context);
234 _.filter = _.select = function(obj, predicate, context) {
236 predicate = cb(predicate, context);
244 _.reject = function(obj, predicate, context) { argument
245 return _.filter(obj, _.negate(cb(predicate)), context);
250 _.every = _.all = function(obj, predicate, context) {
251 predicate = cb(predicate, context);
263 _.some = _.any = function(obj, predicate, context) {
264 predicate = cb(predicate, context);
309 _.max = function(obj, iteratee, context) { argument
321 iteratee = cb(iteratee, context);
334 _.min = function(obj, iteratee, context) { argument
346 iteratee = cb(iteratee, context);
386 _.sortBy = function(obj, iteratee, context) { argument
388 iteratee = cb(iteratee, context);
408 return function(obj, iteratee, context) { argument
410 iteratee = cb(iteratee, context);
537 _.uniq = _.unique = function(array, isSorted, iteratee, context) {
539 context = iteratee;
543 if (iteratee != null) iteratee = cb(iteratee, context);
629 return function(array, predicate, context) { argument
630 predicate = cb(predicate, context);
646 _.sortedIndex = function(array, obj, iteratee, context) { argument
647 iteratee = cb(iteratee, context, 1);
729 var executeBound = function(sourceFunc, boundFunc, context, callingContext, args) { argument
730 if (!(callingContext instanceof boundFunc)) return sourceFunc.apply(context, args);
740 _.bind = restArgs(function(func, context, args) { argument
743 return executeBound(func, bound, context, this, args.concat(callArgs));
811 var timeout, context, args, result;
818 result = func.apply(context, args);
819 if (!timeout) context = args = null;
826 context = this;
834 result = func.apply(context, args);
835 if (!timeout) context = args = null;
845 timeout = context = args = null;
858 var later = function(context, args) { argument
860 if (args) result = func.apply(context, args);
998 _.mapObject = function(obj, iteratee, context) { argument
999 iteratee = cb(iteratee, context);
1068 _.findKey = function(obj, predicate, context) { argument
1069 predicate = cb(predicate, context);
1104 var iteratee = keys[0], context;
1107 if (keys.length > 1) context = keys[1];
1114 return _.pick(obj, iteratee, context);
1390 _.times = function(n, iteratee, context) { argument
1392 iteratee = optimizeCb(iteratee, context, 1);