Bug Tracker

Opened 17 years ago

Closed 17 years ago

Last modified 16 years ago

#112 closed bug (fixed)

toggle(); no longer works (properly?)

Reported by: anonymous Owned by:
Priority: major Milestone: 1.0
Component: effects Version: 1.0
Keywords: Cc:
Blocked by: Blocking:

Description

Revision 165

The following lines of code are messing up the toggle function in certain cases:

toggle: function(){ var d = jQuery.css(this,"display");

$(this)[ !d
d == "none" ? "show" : "hide" ]();

},

When toggle is used like this:

$("#login_link").toggle( function(){$("#loginbox").slideDown("fast");}, function(){$("#loginbox").slideUp("fast");} );

The #login_link is being hidden right off the bat, and it seems theres no way to achieve the above effect with the new functionality of toggle.

Change History (2)

comment:1 Changed 17 years ago by john

Component: corefx
Milestone: 1.0
Version: 1.0

Fixed in SVN rev 168.

comment:2 Changed 17 years ago by john

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.