Code Duplication    Length = 22-22 lines in 2 locations

api/js/etemplate/test/jquery.js 1 location

@@ 4447-4468 (lines=22) @@
4444
			return match;
4445
		},
4446
4447
		PSEUDO: function( match, curLoop, inplace, result, not ) {
4448
			if ( match[1] === "not" ) {
4449
				// If we're dealing with a complex expression, or a simple one
4450
				if ( ( chunker.exec(match[3]) || "" ).length > 1 || /^\w/.test(match[3]) ) {
4451
					match[3] = Sizzle(match[3], null, null, curLoop);
4452
4453
				} else {
4454
					var ret = Sizzle.filter(match[3], curLoop, inplace, true ^ not);
4455
4456
					if ( !inplace ) {
4457
						result.push.apply( result, ret );
4458
					}
4459
4460
					return false;
4461
				}
4462
4463
			} else if ( Expr.match.POS.test( match[0] ) || Expr.match.CHILD.test( match[0] ) ) {
4464
				return true;
4465
			}
4466
			
4467
			return match;
4468
		},
4469
4470
		POS: function( match ) {
4471
			match.unshift( true );

api/js/egw_action/test/js/jquery.js 1 location

@@ 3809-3830 (lines=22) @@
3806
			return match;
3807
		},
3808
3809
		PSEUDO: function( match, curLoop, inplace, result, not ) {
3810
			if ( match[1] === "not" ) {
3811
				// If we're dealing with a complex expression, or a simple one
3812
				if ( ( chunker.exec(match[3]) || "" ).length > 1 || /^\w/.test(match[3]) ) {
3813
					match[3] = Sizzle(match[3], null, null, curLoop);
3814
3815
				} else {
3816
					var ret = Sizzle.filter(match[3], curLoop, inplace, true ^ not);
3817
3818
					if ( !inplace ) {
3819
						result.push.apply( result, ret );
3820
					}
3821
3822
					return false;
3823
				}
3824
3825
			} else if ( Expr.match.POS.test( match[0] ) || Expr.match.CHILD.test( match[0] ) ) {
3826
				return true;
3827
			}
3828
			
3829
			return match;
3830
		},
3831
3832
		POS: function( match ) {
3833
			match.unshift( true );