Lines Matching refs:method
78 var addMethod = function(length, method, attribute) { argument
81 return _[method](this[attribute]);
84 return _[method](this[attribute], value);
87 return _[method](this[attribute], cb(iteratee, this), context);
90 return _[method](this[attribute], cb(iteratee, this), defaultVal, context);
95 return _[method].apply(_, args);
100 _.each(methods, function(length, method) { argument
101 if (_[method]) Class.prototype[method] = addMethod(length, method, attribute);
653 var method = this.isNew() ? 'create' : (options.patch ? 'patch' : 'update');
654 if (method === 'patch' && !options.attrs) options.attrs = attrs;
655 var xhr = this.sync(method, this, options);
1062 var method = options.reset ? 'reset' : 'set';
1063 collection[method](resp, options);
1326 var method = events[key];
1327 if (!_.isFunction(method)) method = this[method];
1328 if (!method) continue;
1330 this.delegate(match[1], match[2], _.bind(method, this));
1406 Backbone.sync = function(method, model, options) { argument
1407 var type = methodMap[method];
1424 …if (options.data == null && model && (method === 'create' || method === 'update' || method === 'pa…