jQuery 1.4.2 - is $(“#foo”).hide(“normal”) broken or am I crazy?

前端 未结 4 588
情歌与酒
情歌与酒 2021-01-12 18:59

Does anyone know why .hide(\"normal\") does not seem to be working in jQuery 1.4.2? Is it a bug, has it been removed or am I just crazy? I\'ve managed to duplic

4条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-12 19:17

    Problem is the class selector: .text != class="test"

    I've done that well over 100 times, with the same words :)

    Change to: $("div.test").hide("normal"); for a fix.


    Update: It seems jQuery UI 1.8 is the issue, breaking "normal" as an animation speed.

    This is from the jQuery UI forums:

    Thanks for pointing that out. Normal was actually never a valid speed option, it was a myth from invalid documentation (used to exist in jQuery core docs as well). The only reason that it worked is because invalid values fall back to the default speed.

    So it seems at least this member of the jQuery UI team doesn't think this is a breaking change, I strongly disagree and hope this is reversed in the next update.

提交回复
热议问题