diff options
author | Michał Gołębiowski-Owczarek <m.goleb@gmail.com> | 2020-05-16 08:36:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-16 08:36:55 +0200 |
commit | f4ef03e57edd7e51cb134e902679c7bddc3daaee (patch) | |
tree | 9b58bc5746bb4b6e173337b71c86be2cabd31ea6 /ui | |
parent | b36d54256968b028a9c324eba6d88754561d5ec4 (diff) | |
download | jquery-ui-f4ef03e57edd7e51cb134e902679c7bddc3daaee.tar.gz jquery-ui-f4ef03e57edd7e51cb134e902679c7bddc3daaee.zip |
All: Resolve most jQuery Migrate warnings
Closes gh-1919
Diffstat (limited to 'ui')
-rw-r--r-- | ui/effects/effect-size.js | 2 | ||||
-rw-r--r-- | ui/safe-offset.js | 0 | ||||
-rw-r--r-- | ui/widgets/button.js | 2 | ||||
-rw-r--r-- | ui/widgets/selectmenu.js | 2 | ||||
-rw-r--r-- | ui/widgets/tooltip.js | 2 |
5 files changed, 5 insertions, 3 deletions
diff --git a/ui/effects/effect-size.js b/ui/effects/effect-size.js index 20af22777..95a1423e6 100644 --- a/ui/effects/effect-size.js +++ b/ui/effects/effect-size.js @@ -105,6 +105,8 @@ return $.effects.define( "size", function( options, done ) { to.top = ( original.outerHeight - to.outerHeight ) * baseline.y + pos.top; to.left = ( original.outerWidth - to.outerWidth ) * baseline.x + pos.left; } + delete from.outerHeight; + delete from.outerWidth; element.css( from ); // Animate the children if desired diff --git a/ui/safe-offset.js b/ui/safe-offset.js new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/ui/safe-offset.js diff --git a/ui/widgets/button.js b/ui/widgets/button.js index 3def0f9aa..a4be3c76e 100644 --- a/ui/widgets/button.js +++ b/ui/widgets/button.js @@ -263,7 +263,7 @@ $.widget( "ui.button", { this._toggleClass( null, "ui-state-disabled", value ); this.element[ 0 ].disabled = value; if ( value ) { - this.element.blur(); + this.element.trigger( "blur" ); } } }, diff --git a/ui/widgets/selectmenu.js b/ui/widgets/selectmenu.js index 52139f73e..79e97816b 100644 --- a/ui/widgets/selectmenu.js +++ b/ui/widgets/selectmenu.js @@ -97,7 +97,7 @@ return $.widget( "ui.selectmenu", [ $.ui.formResetMixin, { this.labels = this.element.labels().attr( "for", this.ids.button ); this._on( this.labels, { click: function( event ) { - this.button.focus(); + this.button.trigger( "focus" ); event.preventDefault(); } } ); diff --git a/ui/widgets/tooltip.js b/ui/widgets/tooltip.js index d466410d7..106485269 100644 --- a/ui/widgets/tooltip.js +++ b/ui/widgets/tooltip.js @@ -331,7 +331,7 @@ $.widget( "ui.tooltip", { position( positionOption.of ); clearInterval( delayedShow ); } - }, $.fx.interval ); + }, 13 ); } this._trigger( "open", event, { tooltip: tooltip } ); |