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
84945cabc4
commit
ab2d2eaf94
111 changed files with 4302 additions and 3100 deletions
|
@ -9,6 +9,8 @@ define( [
|
|||
"./selector"
|
||||
], function( jQuery, indexOf, dir, siblings, rneedsContext ) {
|
||||
|
||||
"use strict";
|
||||
|
||||
var rparentsprev = /^(?:parents|prev(?:Until|All))/,
|
||||
|
||||
// Methods guaranteed to produce a unique set when starting from a unique set
|
||||
|
@ -39,23 +41,24 @@ jQuery.fn.extend( {
|
|||
i = 0,
|
||||
l = this.length,
|
||||
matched = [],
|
||||
pos = rneedsContext.test( selectors ) || typeof selectors !== "string" ?
|
||||
jQuery( selectors, context || this.context ) :
|
||||
0;
|
||||
targets = typeof selectors !== "string" && jQuery( selectors );
|
||||
|
||||
for ( ; i < l; i++ ) {
|
||||
for ( cur = this[ i ]; cur && cur !== context; cur = cur.parentNode ) {
|
||||
// Positional selectors never match, since there's no _selection_ context
|
||||
if ( !rneedsContext.test( selectors ) ) {
|
||||
for ( ; i < l; i++ ) {
|
||||
for ( cur = this[ i ]; cur && cur !== context; cur = cur.parentNode ) {
|
||||
|
||||
// Always skip document fragments
|
||||
if ( cur.nodeType < 11 && ( pos ?
|
||||
pos.index( cur ) > -1 :
|
||||
// Always skip document fragments
|
||||
if ( cur.nodeType < 11 && ( targets ?
|
||||
targets.index( cur ) > -1 :
|
||||
|
||||
// Don't pass non-elements to Sizzle
|
||||
cur.nodeType === 1 &&
|
||||
jQuery.find.matchesSelector( cur, selectors ) ) ) {
|
||||
// Don't pass non-elements to Sizzle
|
||||
cur.nodeType === 1 &&
|
||||
jQuery.find.matchesSelector( cur, selectors ) ) ) {
|
||||
|
||||
matched.push( cur );
|
||||
break;
|
||||
matched.push( cur );
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue