[jQuery] Strange bug: animate converts 'show' to boolean
Hi, today I wanted to add to the tabs plugin the possibility to define your own animation for the tab switch. Like: $('#container-8').tabs({fxAnimate: [{height: 'show', opacity: 'show'}, {height: 'hide', opacity: 'hide'}]}); There is a strange bug although. It works on the first click, but throws an error on subsequent clicks. I found out, that the value of fxAnimate[0].show is converted to a boolean and therefore the error occurs. See here: http://stilbuero.de/jquery/tabs/ (at the very bottom) Does anyone know what's going on here? Strangely enough it works with other animations... -- Klaus ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Strange bug: animate converts 'show' to boolean
Klaus Hartl schrieb: Hi, today I wanted to add to the tabs plugin the possibility to define your own animation for the tab switch. Like: $('#container-8').tabs({fxAnimate: [{height: 'show', opacity: 'show'}, {height: 'hide', opacity: 'hide'}]}); There is a strange bug although. It works on the first click, but throws an error on subsequent clicks. I found out, that the value of fxAnimate[0].show is converted to a boolean and therefore the error occurs. Forget about that, it seems, that the object is changed by design... I simply pass in a copy of the original animate object. -- Klaus ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/