Skip to content

Commit

Permalink
Use toString.bind instead of slice.bind in nativeBind assignment.
Browse files Browse the repository at this point in the history
Former-commit-id: f08d16b1fa8eb98cf848daff96f7449c0dc51c90
  • Loading branch information
jdalton committed Mar 31, 2013
1 parent 70e63d6 commit 4b0d33b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lodash.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 4b0d33b

Please sign in to comment.