Code Duplication    Length = 22-22 lines in 2 locations

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

@@ 4781-4802 (lines=22) @@
4778
4779
// Provide a fallback method if it does not work
4780
} catch( e ) {
4781
	makeArray = function( array, results ) {
4782
		var i = 0,
4783
			ret = results || [];
4784
4785
		if ( toString.call(array) === "[object Array]" ) {
4786
			Array.prototype.push.apply( ret, array );
4787
4788
		} else {
4789
			if ( typeof array.length === "number" ) {
4790
				for ( var l = array.length; i < l; i++ ) {
4791
					ret.push( array[i] );
4792
				}
4793
4794
			} else {
4795
				for ( ; array[i]; i++ ) {
4796
					ret.push( array[i] );
4797
				}
4798
			}
4799
		}
4800
4801
		return ret;
4802
	};
4803
}
4804
4805
var sortOrder, siblingCheck;

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

@@ 4122-4143 (lines=22) @@
4119
4120
// Provide a fallback method if it does not work
4121
} catch( e ) {
4122
	makeArray = function( array, results ) {
4123
		var i = 0,
4124
			ret = results || [];
4125
4126
		if ( toString.call(array) === "[object Array]" ) {
4127
			Array.prototype.push.apply( ret, array );
4128
4129
		} else {
4130
			if ( typeof array.length === "number" ) {
4131
				for ( var l = array.length; i < l; i++ ) {
4132
					ret.push( array[i] );
4133
				}
4134
4135
			} else {
4136
				for ( ; array[i]; i++ ) {
4137
					ret.push( array[i] );
4138
				}
4139
			}
4140
		}
4141
4142
		return ret;
4143
	};
4144
}
4145
4146
var sortOrder, siblingCheck;