Bug Tracker

Opened 17 years ago

Closed 17 years ago

Last modified 16 years ago

#104 closed bug (fixed)

bug with hide()/show() when hide() is called more than once before show(), solution is provided

Reported by: Jörn Owned by:
Priority: critical Milestone: 1.0
Component: core Version: 1.0a
Keywords: Cc:
Blocked by: Blocking:


In my scenario an element was display 'list-item' was hidden more than once before is was displayed. The effect was that it was shown with display:block instead if list-item.

My solution to this problem is quite simple. Just change the first line inside the classic (non-animated) hide function to this:

this.oldblock = this.oldblock

Now hide() takes into account if it was hidden before and does not overwrite this.oldblock in that case.

A test for this bug should look like this: <ul id="testul"><li>blabla</ul></li>

assertTrue($('#testul li').hide().hide().show()[0].style.display == 'list-item');

Change History (2)

comment:1 Changed 17 years ago by Jörn

Priority: majorcritical

comment:2 Changed 17 years ago by john

Resolution: fixed
Status: newclosed

Fixed in SVN rev 165.

Note: See TracTickets for help on using tickets.