Code Duplication    Length = 25-25 lines in 2 locations

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

@@ 4600-4624 (lines=25) @@
4597
		}
4598
	},
4599
	filter: {
4600
		PSEUDO: function( elem, match, i, array ) {
4601
			var name = match[1],
4602
				filter = Expr.filters[ name ];
4603
4604
			if ( filter ) {
4605
				return filter( elem, i, match, array );
4606
4607
			} else if ( name === "contains" ) {
4608
				return (elem.textContent || elem.innerText || getText([ elem ]) || "").indexOf(match[3]) >= 0;
4609
4610
			} else if ( name === "not" ) {
4611
				var not = match[3];
4612
4613
				for ( var j = 0, l = not.length; j < l; j++ ) {
4614
					if ( not[j] === elem ) {
4615
						return false;
4616
					}
4617
				}
4618
4619
				return true;
4620
4621
			} else {
4622
				Sizzle.error( name );
4623
			}
4624
		},
4625
4626
		CHILD: function( elem, match ) {
4627
			var first, last,

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

@@ 3948-3972 (lines=25) @@
3945
		}
3946
	},
3947
	filter: {
3948
		PSEUDO: function( elem, match, i, array ) {
3949
			var name = match[1],
3950
				filter = Expr.filters[ name ];
3951
3952
			if ( filter ) {
3953
				return filter( elem, i, match, array );
3954
3955
			} else if ( name === "contains" ) {
3956
				return (elem.textContent || elem.innerText || Sizzle.getText([ elem ]) || "").indexOf(match[3]) >= 0;
3957
3958
			} else if ( name === "not" ) {
3959
				var not = match[3];
3960
3961
				for ( var j = 0, l = not.length; j < l; j++ ) {
3962
					if ( not[j] === elem ) {
3963
						return false;
3964
					}
3965
				}
3966
3967
				return true;
3968
3969
			} else {
3970
				Sizzle.error( name );
3971
			}
3972
		},
3973
3974
		CHILD: function( elem, match ) {
3975
			var type = match[1],