Updated 'bind' documentation to reflect native support.

This commit is contained in:
Adam Craven
2011-02-20 21:07:14 +01:00
parent ebde2daa4a
commit 468160204d

View File

@@ -407,7 +407,7 @@
// Create a function bound to a given object (assigning `this`, and arguments,
// optionally). Binding with arguments is also known as `curry`.
// Delegates to **ECMAScript 5**'s native `Object.bind` if available.
// Delegates to **ECMAScript 5**'s native `Function.bind` if available.
_.bind = function(func, obj) {
var args = slice.call(arguments, 2);
if(nativeBind && func.bind === nativeBind) return FuncProto.bind.apply(func, slice.call(arguments, 1));