docs: function () {
              var _safeHandleWindowResize = function ( /* theEvent */) {
                  if (this._isOpen && this._ignoreResizeTo === 0) {
                      if ((this._expectResizeEvent() || this._orientationchangeInProgress) &&
                          !this._ui.container.hasClass("ui-popup-hidden")) {
                          // effectively rapid-close the popup while leaving the screen intact
                          //judge user is in input mode or not.
                          if (!($(":focus").is("input") || $(":focus").is("textarea"))) {
                              this._ui.container
                                  .addClass("ui-popup-hidden ui-popup-truncate")
                                  .removeAttr("style");
                          }
                      }
                  }
              };
              var $mobile = $.mobile;
              if ($mobile.widgets && $mobile.widgets.popup) {
                  $mobile.widgets.popup.prototype._handleWindowResize = _safeHandleWindowResize;
              }
          }