开发者

jQuery fadeOut changes/clears window hash

While debuging my site, I found o开发者_高级运维ut that:

/* SOME my-web.com/index/#hash HERE... */
me.slides.eq(me.curID).fadeOut(me.options.fade.interval, me.options.fade.easing, 
    function(){
        /* HERE HASH IS CLEARED: my-web.com/index/# */
    });

anyone have any clues why that is? For sure I can store hash in variable before fadeOut and then put it back, but that's kind of 'dirty' hack :)

p/s/ jQuery is 1.5.1. p/p/s/ i'm talking about window.location.hash, that is: my-web.com/index/#hash


The value is likely out of scope from the callback function. Is the hash set with a var declaration? Where is it declared?

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜