You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.
Right now, the autoshow._handleShow() function binds once to three flavors of the transition end event: one("transitionend webkitTransitionEnd oTransitionEnd"). Since a browser is only going to fire (at most) one of these events (IE will fire none of them), the other event subscriptions won't ever be released.
The fix should be to bind to the specific transition end event (if the browser has one). For example, the following is an example of a fixed implementation:
var transitionEndEvent = 'WebkitTransition' in window ? 'webkitTransitionEnd'
: 'OTransition' in window ? 'oTransitionEnd'
: 'MozTransition' in window || 'transition' in window ? 'transitionend'
: undefined;
if ( event.type !== "popupbeforeposition" && transitionEndEvent) {
this.element
.addClass( "ui-textinput-autogrow-resize" )
.one( "transitionend webkitTransitionEnd oTransitionEnd",
$.proxy( function() {
this.element.removeClass( "ui-textinput-autogrow-resize" );
}, this ) );
}
However, there is probably a better place to configure the transitionEndEvent variable so that it can be reused by other widgets (e.g. panel.js)
The text was updated successfully, but these errors were encountered:
I assume you mean $.**mobile.**support. I'm not sure what the correct naming conventions are and it seems that most of the support properties are Boolean rather than string values (though since an event name is truthy, that shouldn't be a problem).
In this case, would the name be $.mobile.support.transition.end?
Right now, the autoshow._handleShow() function binds once to three flavors of the transition end event:
one("transitionend webkitTransitionEnd oTransitionEnd")
. Since a browser is only going to fire (at most) one of these events (IE will fire none of them), the other event subscriptions won't ever be released.The following code is the culprit:
The fix should be to bind to the specific transition end event (if the browser has one). For example, the following is an example of a fixed implementation:
However, there is probably a better place to configure the
transitionEndEvent
variable so that it can be reused by other widgets (e.g. panel.js)The text was updated successfully, but these errors were encountered: