tgideas / motion

Motion is a javascript library based on Zepto for mobile
http://tgideas.github.io/motion
449 stars 112 forks source link

Use stricts arguments.callee #27

Open shengbeiniao opened 8 years ago

shengbeiniao commented 8 years ago

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 commented 8 years ago

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

jivinliu commented 8 years ago

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