Code Duplication    Length = 19-19 lines in 2 locations

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

@@ 724-742 (lines=19) @@
721
		return -1;
722
	},
723
724
	merge: function( first, second ) {
725
		var i = first.length,
726
			j = 0;
727
728
		if ( typeof second.length === "number" ) {
729
			for ( var l = second.length; j < l; j++ ) {
730
				first[ i++ ] = second[ j ];
731
			}
732
733
		} else {
734
			while ( second[j] !== undefined ) {
735
				first[ i++ ] = second[ j++ ];
736
			}
737
		}
738
739
		first.length = i;
740
741
		return first;
742
	},
743
744
	grep: function( elems, callback, inv ) {
745
		var ret = [], retVal;

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

@@ 698-716 (lines=19) @@
695
		return -1;
696
	},
697
698
	merge: function( first, second ) {
699
		var i = first.length,
700
			j = 0;
701
702
		if ( typeof second.length === "number" ) {
703
			for ( var l = second.length; j < l; j++ ) {
704
				first[ i++ ] = second[ j ];
705
			}
706
707
		} else {
708
			while ( second[j] !== undefined ) {
709
				first[ i++ ] = second[ j++ ];
710
			}
711
		}
712
713
		first.length = i;
714
715
		return first;
716
	},
717
718
	grep: function( elems, callback, inv ) {
719
		var ret = [], retVal;