我尝试使用mooflow画廊。但我与另一个功能发生冲突。
这部分代码遇到了麻烦,尤其是评论的代码:
MooCrop.implement(new Events, new Options);
theObjects = document.getElementsByTagName('object');
for (var i = 0; i < theObjects.length; i++) {
theObjects[i].outerHTML = theObjects[i].outerHTML
};
/*
Function.prototype.bind = function (b) {
var c = this,
a = function () {
return c.apply(b, arguments)
};
return (a)
};
*/
当我删除评论时,它将无效。 这是与它冲突的画廊的召唤:
process: function(x){..}
从这里打电话:
createAniObj: function(){
this.aniFx = new Fx.Value({
'transition': Fx.Transitions.Expo.easeOut,
'link': 'cancel',
'duration': 750,
onMotion: this.process.bind(this),
'onStart': this.flowStart.bind(this),
'onComplete': this.flowComplete.bind(this)
});
this.addLoader();