I'm currently developing a jQuery Plugin called Sudo Slider. (http://webbies.dk/SudoSlider/)
While developing it, I just assumed that IE6 would continue to work (it stopped working in IE6 somewhere between version 2.0.1 and 2.0.8).
And now IE6 re开发者_高级运维ports a bug that I just can't find.
See the bug here: http://webbies.dk/SudoSlider/assets/files/SudoSlider/bug/
Hard to describe, but apparently IE6 thinks that it needs an extra bracket.
Call me a lazy developer or whatever for not checking IE6 all the time, but this project is something I do for free. And since IE6 tends to give me a headache, I tend not to open it (not when i do a paid project though).
just found that in your script:
//line 136
if (option[9] /*auto*/ ) option[11] /*continuous*/ = truev;
what in the world is that ?
Okay i fixed it now, but i still have no idea how it happened.
I replaced the:
if (!dontCountinueInit)
{
...
}
With exactly the same, i just rewrote the if(..)
Then i replaced a if(t<0)
with if(t < 1-1)
// Yes, i'm serious.
Then the i replaced
function ajaxAdjust (target, conti, ajaxCallBack) //hønse
{
...
};
With
function ajaxAdjust(target, conti, ajaxCallBack) {
...
}
So somehow a misalignment of the brackets made the script crash in IE6.
You can see the fixed version here: http://webbies.dk/SudoSlider/assets/files/SudoSlider/bug/fixed/
I just don't get IE6.
精彩评论