Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use stricts arguments.callee #27

Open
shengbeiniao opened this issue Apr 11, 2016 · 2 comments
Open

Use stricts arguments.callee #27

shengbeiniao opened this issue Apr 11, 2016 · 2 comments

Comments

@shengbeiniao
Copy link

slide.v2.0.js

line 47
var constructor = function(){
var mainFn = arguments.callee.prototype.init;
if (typeof(mainFn) == 'function' && arguments.callee.caller != me) {
mainFn && mainFn.apply(this, arguments);
}
};

arguments.callee is deprecated.

test environment
wechat version 6.3.15(android and ios)

motion.js not working on strict mode.

@shengbeiniao
Copy link
Author

webpack will audo add 'use strict' on every function.

@jivinliu
Copy link

我也遇到了同样的问题,严格模式下会报错

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants