From 6d4b76705d656009e814823aca3f681ca0a56d6f Mon Sep 17 00:00:00 2001 From: Jeremy Ashkenas Date: Tue, 22 Mar 2011 15:48:09 -0400 Subject: [PATCH] we're reserving nativeBind ... we should be actually using it. --- underscore.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/underscore.js b/underscore.js index 00f6c26f5..259a4f310 100644 --- a/underscore.js +++ b/underscore.js @@ -410,7 +410,7 @@ // Delegates to **ECMAScript 5**'s native `Function.bind` if available. // We check for `func.bind` first, to fail fast when `func` is undefined. _.bind = function(func, obj) { - if (func.bind === nativeBind && nativeBind) return func.bind.apply(func, slice.call(arguments, 1)); + if (func.bind === nativeBind && nativeBind) return nativeBind.apply(func, slice.call(arguments, 1)); var args = slice.call(arguments, 2); return function() { return func.apply(obj, args.concat(slice.call(arguments)));