Use toString.bind instead of slice.bind in nativeBind assignment.

Former-commit-id: f08d16b1fa8eb98cf848daff96f7449c0dc51c90
This commit is contained in:
John-David Dalton
2013-03-30 22:07:24 -07:00
parent d4aed71abf
commit 80a39393fe

View File

@@ -174,7 +174,7 @@
toString = objectRef.toString;
/* Native method shortcuts for methods with the same name as other `lodash` methods */
var nativeBind = reNative.test(nativeBind = slice.bind) && nativeBind,
var nativeBind = reNative.test(nativeBind = toString.bind) && nativeBind,
nativeIsArray = reNative.test(nativeIsArray = Array.isArray) && nativeIsArray,
nativeIsFinite = context.isFinite,
nativeIsNaN = context.isNaN,