Lines Matching refs:context

63   var optimizeCb = function(func, context, argCount) {  argument
64 if (context === void 0) return func;
67 return func.call(context, value);
70 return func.call(context, value, other);
73 return func.call(context, value, index, collection);
76 return func.call(context, accumulator, value, index, collection);
80 return func.apply(context, arguments);
87 var cb = function(value, context, argCount) { argument
89 if (_.isFunction(value)) return optimizeCb(value, context, argCount);
93 _.iteratee = function(value, context) { argument
94 return cb(value, context, Infinity);
148 _.each = _.forEach = function(obj, iteratee, context) {
149 iteratee = optimizeCb(iteratee, context);
165 _.map = _.collect = function(obj, iteratee, context) {
166 iteratee = cb(iteratee, context);
189 return function(obj, iteratee, memo, context) { argument
190 iteratee = optimizeCb(iteratee, context, 4);
211 _.find = _.detect = function(obj, predicate, context) {
214 key = _.findIndex(obj, predicate, context);
216 key = _.findKey(obj, predicate, context);
223 _.filter = _.select = function(obj, predicate, context) {
225 predicate = cb(predicate, context);
233 _.reject = function(obj, predicate, context) { argument
234 return _.filter(obj, _.negate(cb(predicate)), context);
239 _.every = _.all = function(obj, predicate, context) {
240 predicate = cb(predicate, context);
252 _.some = _.any = function(obj, predicate, context) {
253 predicate = cb(predicate, context);
299 _.max = function(obj, iteratee, context) { argument
311 iteratee = cb(iteratee, context);
324 _.min = function(obj, iteratee, context) { argument
336 iteratee = cb(iteratee, context);
374 _.sortBy = function(obj, iteratee, context) { argument
375 iteratee = cb(iteratee, context);
395 return function(obj, iteratee, context) { argument
397 iteratee = cb(iteratee, context);
441 _.partition = function(obj, predicate, context) { argument
442 predicate = cb(predicate, context);
522 _.uniq = _.unique = function(array, isSorted, iteratee, context) {
524 context = iteratee;
528 if (iteratee != null) iteratee = cb(iteratee, context);
615 return function(array, predicate, context) { argument
616 predicate = cb(predicate, context);
632 _.sortedIndex = function(array, obj, iteratee, context) { argument
633 iteratee = cb(iteratee, context, 1);
700 var executeBound = function(sourceFunc, boundFunc, context, callingContext, args) { argument
701 if (!(callingContext instanceof boundFunc)) return sourceFunc.apply(context, args);
711 _.bind = function(func, context) { argument
716 return executeBound(func, bound, context, this, args.concat(slice.call(arguments)));
782 var context, args, result;
789 result = func.apply(context, args);
790 if (!timeout) context = args = null;
796 context = this;
804 result = func.apply(context, args);
805 if (!timeout) context = args = null;
818 var timeout, args, context, timestamp, result;
828 result = func.apply(context, args);
829 if (!timeout) context = args = null;
835 context = this;
841 result = func.apply(context, args);
842 context = args = null;
961 _.mapObject = function(obj, iteratee, context) { argument
962 iteratee = cb(iteratee, context);
1013 _.findKey = function(obj, predicate, context) { argument
1014 predicate = cb(predicate, context);
1023 _.pick = function(object, oiteratee, context) { argument
1028 iteratee = optimizeCb(oiteratee, context);
1043 _.omit = function(obj, iteratee, context) { argument
1052 return _.pick(obj, iteratee, context);
1314 _.times = function(n, iteratee, context) { argument
1316 iteratee = optimizeCb(iteratee, context, 1);