Bug Tracker

Opened 6 years ago

Closed 6 years ago

#14390 closed bug (notabug)

toggle() on version 1.10.2

Reported by: anonyMous Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.10.2
Keywords: Cc:
Blocked by: Blocking:

Description

hi, the toggle action don't work very well when i have tried this:


$('p:first').toggle(function() {

$(this).animate( {'height':'+=150px'}, 1000, 'linear')

}, function() {

$(this).animate( {'height':'-=150px'}, 1000, 'swing');

});


this toggle with version 1.10.2 apply only second function "-=150px" and on load page...!

Change History (3)

comment:1 Changed 6 years ago by dmethvin

#14391 is a duplicate of this ticket.

comment:2 Changed 6 years ago by dmethvin

#14392 is a duplicate of this ticket.

comment:3 Changed 6 years ago by dmethvin

Resolution: notabug
Status: newclosed

The .toggle(fn,fn...) signature has been deprecated since 1.8 and was removed in 1.9. Change the code or use the jQuery Migrate plugin.

http://api.jquery.com/toggle-event/

Note: See TracTickets for help on using tickets.