mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update components
This commit is contained in:
parent
7537bab562
commit
d84c5a7c1d
226 changed files with 51770 additions and 4157 deletions
|
@ -1,4 +1,4 @@
|
|||
define([
|
||||
define( [
|
||||
"../core",
|
||||
"../css"
|
||||
], function( jQuery ) {
|
||||
|
@ -13,7 +13,7 @@ Tween.prototype = {
|
|||
init: function( elem, options, prop, end, easing, unit ) {
|
||||
this.elem = elem;
|
||||
this.prop = prop;
|
||||
this.easing = easing || "swing";
|
||||
this.easing = easing || jQuery.easing._default;
|
||||
this.options = options;
|
||||
this.start = this.now = this.cur();
|
||||
this.end = end;
|
||||
|
@ -59,8 +59,10 @@ Tween.propHooks = {
|
|||
get: function( tween ) {
|
||||
var result;
|
||||
|
||||
if ( tween.elem[ tween.prop ] != null &&
|
||||
(!tween.elem.style || tween.elem.style[ tween.prop ] == null) ) {
|
||||
// Use a property on the element directly when it is not a DOM element,
|
||||
// or when there is no matching style property that exists.
|
||||
if ( tween.elem.nodeType !== 1 ||
|
||||
tween.elem[ tween.prop ] != null && tween.elem.style[ tween.prop ] == null ) {
|
||||
return tween.elem[ tween.prop ];
|
||||
}
|
||||
|
||||
|
@ -69,16 +71,20 @@ Tween.propHooks = {
|
|||
// Simple values such as "10px" are parsed to Float;
|
||||
// complex values such as "rotate(1rad)" are returned as-is.
|
||||
result = jQuery.css( tween.elem, tween.prop, "" );
|
||||
|
||||
// Empty strings, null, undefined and "auto" are converted to 0.
|
||||
return !result || result === "auto" ? 0 : result;
|
||||
},
|
||||
set: function( tween ) {
|
||||
|
||||
// Use step hook for back compat.
|
||||
// Use cssHook if its there.
|
||||
// Use .style if available and use plain properties where available.
|
||||
if ( jQuery.fx.step[ tween.prop ] ) {
|
||||
jQuery.fx.step[ tween.prop ]( tween );
|
||||
} else if ( tween.elem.style && ( tween.elem.style[ jQuery.cssProps[ tween.prop ] ] != null || jQuery.cssHooks[ tween.prop ] ) ) {
|
||||
} else if ( tween.elem.nodeType === 1 &&
|
||||
( tween.elem.style[ jQuery.cssProps[ tween.prop ] ] != null ||
|
||||
jQuery.cssHooks[ tween.prop ] ) ) {
|
||||
jQuery.style( tween.elem, tween.prop, tween.now + tween.unit );
|
||||
} else {
|
||||
tween.elem[ tween.prop ] = tween.now;
|
||||
|
@ -103,7 +109,8 @@ jQuery.easing = {
|
|||
},
|
||||
swing: function( p ) {
|
||||
return 0.5 - Math.cos( p * Math.PI ) / 2;
|
||||
}
|
||||
},
|
||||
_default: "swing"
|
||||
};
|
||||
|
||||
jQuery.fx = Tween.prototype.init;
|
||||
|
@ -111,4 +118,4 @@ jQuery.fx = Tween.prototype.init;
|
|||
// Back Compat <1.8 extension point
|
||||
jQuery.fx.step = {};
|
||||
|
||||
});
|
||||
} );
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
define([
|
||||
define( [
|
||||
"../core",
|
||||
"../selector",
|
||||
"../effects"
|
||||
], function( jQuery ) {
|
||||
|
||||
jQuery.expr.filters.animated = function( elem ) {
|
||||
return jQuery.grep(jQuery.timers, function( fn ) {
|
||||
return jQuery.grep( jQuery.timers, function( fn ) {
|
||||
return elem === fn.elem;
|
||||
}).length;
|
||||
} ).length;
|
||||
};
|
||||
|
||||
});
|
||||
} );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue