Update vendors.

Former-commit-id: 6be90c53f9b69d500485492ea2a0ebd288b92abe
This commit is contained in:
John-David Dalton
2013-05-29 08:56:53 -05:00
parent 93a01506e4
commit 1db19148e7
6 changed files with 11 additions and 9 deletions

File diff suppressed because one or more lines are too long

View File

@@ -266,7 +266,7 @@
var result = {computed : -Infinity, value: -Infinity};
each(obj, function(value, index, list) {
var computed = iterator ? iterator.call(context, value, index, list) : value;
computed >= result.computed && (result = {value : value, computed : computed});
computed > result.computed && (result = {value : value, computed : computed});
});
return result.value;
};
@@ -593,7 +593,7 @@
// available.
_.bind = function(func, context) {
var args, bound;
if (func.bind === nativeBind && nativeBind) return nativeBind.apply(func, slice.call(arguments, 1));
if (nativeBind && func.bind === nativeBind) return nativeBind.apply(func, slice.call(arguments, 1));
if (!_.isFunction(func)) throw new TypeError;
args = slice.call(arguments, 2);
return bound = function() {
@@ -651,7 +651,8 @@
// Returns a function, that, when invoked, will only be triggered at most once
// during a given window of time.
_.throttle = function(func, wait, immediate) {
var context, args, timeout, result;
var context, args, result;
var timeout = null;
var previous = 0;
var later = function() {
previous = new Date;
@@ -681,7 +682,8 @@
// N milliseconds. If `immediate` is passed, trigger the function on the
// leading edge, instead of the trailing.
_.debounce = function(func, wait, immediate) {
var timeout, result;
var result;
var timeout = null;
return function() {
var context = this, args = arguments;
var later = function() {