Skip to content

bind问题记录#95

Open
weishuping wants to merge 1 commit into
mqyqingfeng:masterfrom
weishuping:master
Open

bind问题记录#95
weishuping wants to merge 1 commit into
mqyqingfeng:masterfrom
weishuping:master

Conversation

@weishuping

Copy link
Copy Markdown

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

@zhenujt zhenujt left a comment

Copy link
Copy Markdown

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