appMobi/jQ.Mobi — Issue #84: toggle not seeing display:none from class
Author: DanyN
Created: 2012-02-14 16:32:43+00:00
State: open

I want to toggle a div. If I use the following code I have to click twice to make it work:

I'm visible

To see what happens I did the following:

if (this[i].style.display !== "none" || (show !== undefined && show2 === false)) {
console.log( 'here none' );
console.log( this[i].style.display );

After the first click it displays:
'here none'
''

Apparently it does not consider the "initialy_hidden" class. If I put the style inline the div (style="display:none") it works normally.