Skip to content
This repository
Browse code

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

  • Loading branch information...
commit 75b6fd24565de527a17034701c1cab2068096854 1 parent c13fff5
John-David Dalton authored March 30, 2013

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

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

0 notes on commit 75b6fd2

Please sign in to comment.
Something went wrong with that request. Please try again.