开发者

jQuery fadeOut changes/clears window hash

开发者 https://www.devze.com 2023-03-28 18:51 出处:网络
While debuging my site, I found o开发者_高级运维ut that: /* SOME my-web.com/index/#hash HERE... */

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

精彩评论

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