开发者

mooflow function conflict

开发者 https://www.devze.com 2023-02-17 00:40 出处:网络
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:

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

精彩评论

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

关注公众号