Code Duplication    Length = 24-33 lines in 2 locations

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

@@ 8569-8601 (lines=33) @@
8566
});
8567
8568
jQuery.extend({
8569
	speed: function( speed, easing, fn ) {
8570
		var opt = speed && typeof speed === "object" ? jQuery.extend( {}, speed ) : {
8571
			complete: fn || !fn && easing ||
8572
				jQuery.isFunction( speed ) && speed,
8573
			duration: speed,
8574
			easing: fn && easing || easing && !jQuery.isFunction( easing ) && easing
8575
		};
8576
8577
		opt.duration = jQuery.fx.off ? 0 : typeof opt.duration === "number" ? opt.duration :
8578
			opt.duration in jQuery.fx.speeds ? jQuery.fx.speeds[ opt.duration ] : jQuery.fx.speeds._default;
8579
8580
		// normalize opt.queue - true/undefined/null -> "fx"
8581
		if ( opt.queue == null || opt.queue === true ) {
8582
			opt.queue = "fx";
8583
		}
8584
8585
		// Queueing
8586
		opt.old = opt.complete;
8587
8588
		opt.complete = function( noUnmark ) {
8589
			if ( jQuery.isFunction( opt.old ) ) {
8590
				opt.old.call( this );
8591
			}
8592
8593
			if ( opt.queue ) {
8594
				jQuery.dequeue( this, opt.queue );
8595
			} else if ( noUnmark !== false ) {
8596
				jQuery._unmark( this );
8597
			}
8598
		};
8599
8600
		return opt;
8601
	},
8602
8603
	easing: {
8604
		linear: function( p, n, firstNum, diff ) {

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

@@ 7554-7577 (lines=24) @@
7551
});
7552
7553
jQuery.extend({
7554
	speed: function( speed, easing, fn ) {
7555
		var opt = speed && typeof speed === "object" ? jQuery.extend({}, speed) : {
7556
			complete: fn || !fn && easing ||
7557
				jQuery.isFunction( speed ) && speed,
7558
			duration: speed,
7559
			easing: fn && easing || easing && !jQuery.isFunction(easing) && easing
7560
		};
7561
7562
		opt.duration = jQuery.fx.off ? 0 : typeof opt.duration === "number" ? opt.duration :
7563
			opt.duration in jQuery.fx.speeds ? jQuery.fx.speeds[opt.duration] : jQuery.fx.speeds._default;
7564
7565
		// Queueing
7566
		opt.old = opt.complete;
7567
		opt.complete = function() {
7568
			if ( opt.queue !== false ) {
7569
				jQuery(this).dequeue();
7570
			}
7571
			if ( jQuery.isFunction( opt.old ) ) {
7572
				opt.old.call( this );
7573
			}
7574
		};
7575
7576
		return opt;
7577
	},
7578
7579
	easing: {
7580
		linear: function( p, n, firstNum, diff ) {