mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 17:59:55 +02:00
Update node modules
This commit is contained in:
parent
52a013772f
commit
09d8558456
858 changed files with 5466 additions and 544833 deletions
35
node_modules/jquery-ui/ui/widgets/spinner.js
generated
vendored
35
node_modules/jquery-ui/ui/widgets/spinner.js
generated
vendored
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* jQuery UI Spinner 1.13.3
|
||||
* jQuery UI Spinner 1.14.0
|
||||
* https://jqueryui.com
|
||||
*
|
||||
* Copyright OpenJS Foundation and other contributors
|
||||
|
@ -27,7 +27,6 @@
|
|||
"./button",
|
||||
"../version",
|
||||
"../keycode",
|
||||
"../safe-active-element",
|
||||
"../widget"
|
||||
], factory );
|
||||
} else {
|
||||
|
@ -50,7 +49,7 @@ function spinnerModifier( fn ) {
|
|||
}
|
||||
|
||||
$.widget( "ui.spinner", {
|
||||
version: "1.13.3",
|
||||
version: "1.14.0",
|
||||
defaultElement: "<input>",
|
||||
widgetEventPrefix: "spin",
|
||||
options: {
|
||||
|
@ -131,11 +130,6 @@ $.widget( "ui.spinner", {
|
|||
this.previous = this.element.val();
|
||||
},
|
||||
blur: function( event ) {
|
||||
if ( this.cancelBlur ) {
|
||||
delete this.cancelBlur;
|
||||
return;
|
||||
}
|
||||
|
||||
this._stop();
|
||||
this._refresh();
|
||||
if ( this.previous !== this.element.val() ) {
|
||||
|
@ -143,7 +137,7 @@ $.widget( "ui.spinner", {
|
|||
}
|
||||
},
|
||||
mousewheel: function( event, delta ) {
|
||||
var activeElement = $.ui.safeActiveElement( this.document[ 0 ] );
|
||||
var activeElement = this.document[ 0 ].activeElement;
|
||||
var isActive = this.element[ 0 ] === activeElement;
|
||||
|
||||
if ( !isActive || !delta ) {
|
||||
|
@ -171,20 +165,13 @@ $.widget( "ui.spinner", {
|
|||
// If the input is focused then this.previous is properly set from
|
||||
// when the input first received focus. If the input is not focused
|
||||
// then we need to set this.previous based on the value before spinning.
|
||||
previous = this.element[ 0 ] === $.ui.safeActiveElement( this.document[ 0 ] ) ?
|
||||
previous = this.element[ 0 ] === this.document[ 0 ].activeElement ?
|
||||
this.previous : this.element.val();
|
||||
function checkFocus() {
|
||||
var isActive = this.element[ 0 ] === $.ui.safeActiveElement( this.document[ 0 ] );
|
||||
var isActive = this.element[ 0 ] === this.document[ 0 ].activeElement;
|
||||
if ( !isActive ) {
|
||||
this.element.trigger( "focus" );
|
||||
this.previous = previous;
|
||||
|
||||
// support: IE
|
||||
// IE sets focus asynchronously, so we need to check if focus
|
||||
// moved off of the input because the user clicked on the button.
|
||||
this._delay( function() {
|
||||
this.previous = previous;
|
||||
} );
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -192,16 +179,6 @@ $.widget( "ui.spinner", {
|
|||
event.preventDefault();
|
||||
checkFocus.call( this );
|
||||
|
||||
// Support: IE
|
||||
// IE doesn't prevent moving focus even with event.preventDefault()
|
||||
// so we set a flag to know when we should ignore the blur event
|
||||
// and check (again) if focus moved off of the input.
|
||||
this.cancelBlur = true;
|
||||
this._delay( function() {
|
||||
delete this.cancelBlur;
|
||||
checkFocus.call( this );
|
||||
} );
|
||||
|
||||
if ( this._start( event ) === false ) {
|
||||
return;
|
||||
}
|
||||
|
@ -554,7 +531,7 @@ $.widget( "ui.spinner", {
|
|||
|
||||
// DEPRECATED
|
||||
// TODO: switch return back to widget declaration at top of file when this is removed
|
||||
if ( $.uiBackCompat !== false ) {
|
||||
if ( $.uiBackCompat === true ) {
|
||||
|
||||
// Backcompat for spinner html extension points
|
||||
$.widget( "ui.spinner", $.ui.spinner, {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue