@@ 5391-5410 (lines=20) @@ | ||
5388 | ||
5389 | }, |
|
5390 | ||
5391 | _adjustOffsetFromHelper: function( obj ) { |
|
5392 | if ( typeof obj === "string" ) { |
|
5393 | obj = obj.split( " " ); |
|
5394 | } |
|
5395 | if ( $.isArray( obj ) ) { |
|
5396 | obj = { left: +obj[ 0 ], top: +obj[ 1 ] || 0 }; |
|
5397 | } |
|
5398 | if ( "left" in obj ) { |
|
5399 | this.offset.click.left = obj.left + this.margins.left; |
|
5400 | } |
|
5401 | if ( "right" in obj ) { |
|
5402 | this.offset.click.left = this.helperProportions.width - obj.right + this.margins.left; |
|
5403 | } |
|
5404 | if ( "top" in obj ) { |
|
5405 | this.offset.click.top = obj.top + this.margins.top; |
|
5406 | } |
|
5407 | if ( "bottom" in obj ) { |
|
5408 | this.offset.click.top = this.helperProportions.height - obj.bottom + this.margins.top; |
|
5409 | } |
|
5410 | }, |
|
5411 | ||
5412 | _getParentOffset: function() { |
|
5413 | ||
@@ 1503-1522 (lines=20) @@ | ||
1500 | } |
|
1501 | }, |
|
1502 | ||
1503 | _adjustOffsetFromHelper: function( obj ) { |
|
1504 | if ( typeof obj === "string" ) { |
|
1505 | obj = obj.split( " " ); |
|
1506 | } |
|
1507 | if ( $.isArray( obj ) ) { |
|
1508 | obj = { left: +obj[ 0 ], top: +obj[ 1 ] || 0 }; |
|
1509 | } |
|
1510 | if ( "left" in obj ) { |
|
1511 | this.offset.click.left = obj.left + this.margins.left; |
|
1512 | } |
|
1513 | if ( "right" in obj ) { |
|
1514 | this.offset.click.left = this.helperProportions.width - obj.right + this.margins.left; |
|
1515 | } |
|
1516 | if ( "top" in obj ) { |
|
1517 | this.offset.click.top = obj.top + this.margins.top; |
|
1518 | } |
|
1519 | if ( "bottom" in obj ) { |
|
1520 | this.offset.click.top = this.helperProportions.height - obj.bottom + this.margins.top; |
|
1521 | } |
|
1522 | }, |
|
1523 | ||
1524 | _isRootNode: function( element ) { |
|
1525 | return ( /(html|body)/i ).test( element.tagName ) || element === this.document[ 0 ]; |