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

Commit affcc54

Browse files
author
Gabriel Schulhof
committed
[popup] Rename function _maybeRefreshTimeout to _expectResizeEvent
1 parent 0c4b2f3 commit affcc54

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
@@ -87,7 +87,7 @@ define( [ "jquery",
8787
}
8888
},
8989

90-
_maybeRefreshTimeout: function() {
90+
_expectResizeEvent: function() {
9191
var winCoords = windowCoords();
9292

9393
if ( this._resizeData ) {
@@ -113,7 +113,7 @@ define( [ "jquery",
113113

114114
_resizeTimeout: function() {
115115
if ( this._isOpen ) {
116-
if ( !this._maybeRefreshTimeout() ) {
116+
if ( !this._expectResizeEvent() ) {
117117
if ( this._ui.container.hasClass( "ui-selectmenu-hidden" ) ) {
118118
// effectively rapid-open the popup while leaving the screen intact
119119
this._trigger( "beforeposition" );
@@ -134,7 +134,7 @@ define( [ "jquery",
134134

135135
_handleWindowResize: function( e ) {
136136
if ( this._isOpen ) {
137-
if ( ( this._maybeRefreshTimeout() || this._orientationchangeInProgress ) &&
137+
if ( ( this._expectResizeEvent() || this._orientationchangeInProgress ) &&
138138
!this._ui.container.hasClass( "ui-selectmenu-hidden" ) ) {
139139
// effectively rapid-close the popup while leaving the screen intact
140140
this._ui.container
@@ -146,7 +146,7 @@ define( [ "jquery",
146146

147147
_handleWindowOrientationchange: function( e ) {
148148
if ( !this._orientationchangeInProgress && this._isOpen ) {
149-
this._maybeRefreshTimeout();
149+
this._expectResizeEvent();
150150
this._orientationchangeInProgress = true;
151151
}
152152
},
@@ -525,7 +525,7 @@ define( [ "jquery",
525525

526526
_completeOpen: function() {
527527
this._ui.container.attr( "tabindex", "0" ).focus();
528-
this._maybeRefreshTimeout();
528+
this._expectResizeEvent();
529529
this._trigger( "afteropen" );
530530
},
531531

0 commit comments

Comments
 (0)