Klaus Hartl schrieb:
> I'm going to change that. The tabs plugin will be found in the
> repository soon by the way...
>   
Cool.
>
>   
>> This would enable plugin writes to simply point to the docs for animate, 
>> instead of documenting their custom animation parser over and over again.
>>     
>
> That was already my intention.
>   
Ye, I thought so that you thought so :-) Just wanted to state it, as I 
intend to add this to the plugin authoring guide.
>
>   
>>> The problem was that the original object is modified so I have to copy 
>>> the animate hash everytime and pass a copy to animate...
>>>   
>>>       
>> Could you explain this some more? Why was the original object modified?
>>     
>
> Yes, the object that is passed to animate was altered, all values were
> converted to booleans which causes an error next time the animation was
> executed with this object.
>
> Consider this:
>
> // fails second time...:
> tabToHide.animate(options.fxAnimate[1], options.fxSpeed, ...);
>
> // works fine...:
> var hideAnim = $.extend({}, options.fxAnimate[1]); // copy object
> tabToHide.animate(hideAnim, options.fxSpeed, ...);
>
> It's a workaround, but I couldn't find out yet where and why the object
> is altered.
>   
Seems like a bug to me: http://jquery.com/dev/bugs/bug/237/

-- Jörn

_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to