Code Duplication    Length = 20-20 lines in 2 locations

Resources/Public/JavaScript/jquery-ui.js 2 locations

@@ 16284-16303 (lines=20) @@
16281
16282
	},
16283
16284
	_adjustOffsetFromHelper: function( obj ) {
16285
		if ( typeof obj === "string" ) {
16286
			obj = obj.split( " " );
16287
		}
16288
		if ( $.isArray( obj ) ) {
16289
			obj = { left: +obj[ 0 ], top: +obj[ 1 ] || 0 };
16290
		}
16291
		if ( "left" in obj ) {
16292
			this.offset.click.left = obj.left + this.margins.left;
16293
		}
16294
		if ( "right" in obj ) {
16295
			this.offset.click.left = this.helperProportions.width - obj.right + this.margins.left;
16296
		}
16297
		if ( "top" in obj ) {
16298
			this.offset.click.top = obj.top + this.margins.top;
16299
		}
16300
		if ( "bottom" in obj ) {
16301
			this.offset.click.top = this.helperProportions.height - obj.bottom + this.margins.top;
16302
		}
16303
	},
16304
16305
	_getParentOffset: function() {
16306
@@ 9915-9934 (lines=20) @@
9912
		}
9913
	},
9914
9915
	_adjustOffsetFromHelper: function( obj ) {
9916
		if ( typeof obj === "string" ) {
9917
			obj = obj.split( " " );
9918
		}
9919
		if ( $.isArray( obj ) ) {
9920
			obj = { left: +obj[ 0 ], top: +obj[ 1 ] || 0 };
9921
		}
9922
		if ( "left" in obj ) {
9923
			this.offset.click.left = obj.left + this.margins.left;
9924
		}
9925
		if ( "right" in obj ) {
9926
			this.offset.click.left = this.helperProportions.width - obj.right + this.margins.left;
9927
		}
9928
		if ( "top" in obj ) {
9929
			this.offset.click.top = obj.top + this.margins.top;
9930
		}
9931
		if ( "bottom" in obj ) {
9932
			this.offset.click.top = this.helperProportions.height - obj.bottom + this.margins.top;
9933
		}
9934
	},
9935
9936
	_isRootNode: function( element ) {
9937
		return ( /(html|body)/i ).test( element.tagName ) || element === this.document[ 0 ];