Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Commit d859a59

Browse files
author
Gabriel Schulhof
committed
[popup] Rename function _maybeRefreshTimeout to _expectResizeEvent
Conflicts: js/widgets/popup.js
1 parent d73f896 commit d859a59

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

js/widgets/popup.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ define( [ "jquery",
8484
}
8585
},
8686

87-
_maybeRefreshTimeout: function() {
87+
_expectResizeEvent: function() {
8888
var winCoords = windowCoords();
8989

9090
if ( this._resizeData ) {
@@ -110,7 +110,7 @@ define( [ "jquery",
110110

111111
_resizeTimeout: function() {
112112
if ( this._isOpen ) {
113-
if ( !this._maybeRefreshTimeout() ) {
113+
if ( !this._expectResizeEvent() ) {
114114
if ( this._ui.container.hasClass( "ui-selectmenu-hidden" ) ) {
115115
// effectively rapid-open the popup while leaving the screen intact
116116
this._trigger( "beforeposition" );
@@ -131,7 +131,7 @@ define( [ "jquery",
131131

132132
_handleWindowResize: function( e ) {
133133
if ( this._isOpen ) {
134-
if ( ( this._maybeRefreshTimeout() || this._orientationchangeInProgress ) &&
134+
if ( ( this._expectResizeEvent() || this._orientationchangeInProgress ) &&
135135
!this._ui.container.hasClass( "ui-selectmenu-hidden" ) ) {
136136
// effectively rapid-close the popup while leaving the screen intact
137137
this._ui.container
@@ -143,7 +143,7 @@ define( [ "jquery",
143143

144144
_handleWindowOrientationchange: function( e ) {
145145
if ( !this._orientationchangeInProgress && this._isOpen ) {
146-
this._maybeRefreshTimeout();
146+
this._expectResizeEvent();
147147
this._orientationchangeInProgress = true;
148148
}
149149
},
@@ -525,7 +525,7 @@ define( [ "jquery",
525525
// the "blue flash" of element focus in android 4.0
526526
setTimeout(function(){
527527
self._ui.container.attr( "tabindex", "0" ).focus();
528-
self._maybeRefreshTimeout();
528+
self._expectResizeEvent();
529529
self._trigger( "afteropen" );
530530
});
531531
},

0 commit comments

Comments
 (0)