开发者

mooflow function conflict

I tried to use the mooflow gallery. But i get a conflict with another function.

This part of code does the trouble, especially the commented one:

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)
};
*/

When i delete the comments, it will not work. And this 开发者_JAVA技巧is the call of the gallery it conflicts with:

process: function(x){..}

called from here:

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();
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜