hiroprotagonist / jquery.mobile.actionsheet

An actionsheet for jquerymobile
103 stars 34 forks source link

To force close method without animate '...animateOut' #31

Closed gcsis closed 12 years ago

gcsis commented 12 years ago

It is sometimes necessary to not be performed close transitions, for example to avoid flicker when deriving to other elements with animate. For this, I propose change within the close method (see internal 'if'):

if( $.support.cssTransitions ) {       ...       }

new 'if' conditions (taking advantage of event param):

if( $.support.cssTransitions && event!==false ) {       ...      }

so you can call to close without transition :

$('#sheet').actionsheet('close',false);
hiroprotagonist commented 12 years ago

Hmmm. Thanks for the idea but i dont like it.