Ticket #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:|
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:
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().style.display == 'list-item');