iOS9版本里js函数名与函数参数名一样有bug

iOS9 浏览器或者微信里面对象方法名和参数名一样有bug

在128店庆中使用scroller滚动逻辑组件pixijs精灵渲染库和tweenjs做2楼惊喜之城动画时,碰到tweenjs速率库在iOS9浏览器或者微信里面有bug,准确说应该是iOS9的问题。
1
2
3
4
5
6
7
8
9
10
11
12
TWEEN.Tween.prototype = {
// other code
yoyo: function yoyo(yoyo) {
// do some things
},
easing: function easing(easing) {
// do some things
},
interpolation: function interpolation(interpolation) {
// do some things
}
};

修改如下:

1
2
3
4
5
6
7
8
9
10
11
12
TWEEN.Tween.prototype = {
// other code
yoyo: function (yoyo) {
// do some things
},
easing: function (easing) {
// do some things
},
interpolation: function (interpolation) {
// do some things
}
};