Skip to content

Conversation

@weishuping
Copy link

在有返回值的函数绑定的时候 重写的bind有问题

Copy link

@zhenujt zhenujt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

var fbound = function () {
var bindArgs = Array . prototype . slice . call ( arguments );
self . apply ( this instanceof fbound ? this : context, args . concat (bindArgs));
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants