Skip to content
Permalink
Browse files

fix spacing and add in a missing comma

  • Loading branch information...
David Murdoch
David Murdoch committed May 11, 2011
1 parent abf3a86 commit 9e4e359705e6cb0b9608c3d842b7235ab1daefef
Showing with 6 additions and 5 deletions.
  1. +6 −5 ui/jquery.ui.position.js
@@ -186,7 +186,7 @@ $.ui.position = {
fit: {
left: function( position, data ) {
var win = data.within,
isWindow = $.isWindow(data.within[0]),
isWindow = $.isWindow( data.within[0] ),
winOffset = isWindow ? 0 : win.offset().left,
outerWidth = isWindow ? win.width() : win.outerWidth(),
overLeft = win.scrollLeft() - data.collisionPosition.left + winOffset,
@@ -205,7 +205,7 @@ $.ui.position = {
},
top: function( position, data ) {
var win = data.within,
isWindow = $.isWindow(data.within[0]),
isWindow = $.isWindow( data.within[0] ),
winOffset = isWindow ? 0 : win.offset().top,
outerHeight = isWindow ? win.height() : win.outerHeight(),
overTop = win.scrollTop() - data.collisionPosition.top + winOffset,
@@ -228,12 +228,13 @@ $.ui.position = {
if ( data.at[ 0 ] === center ) {
return;
}

var win = data.within,
isWindow = $.isWindow(data.within[0]),
isWindow = $.isWindow( data.within[0] ),
winOffset = isWindow ? 0 : win.offset().left,
outerWidth = isWindow ? win.width() : win.outerWidth(),
overLeft = data.collisionPosition.left - winOffset,
overRight = data.collisionPosition.left + data.collisionWidth - outerWidth - win.scrollLeft() - winOffset
overRight = data.collisionPosition.left + data.collisionWidth - outerWidth - win.scrollLeft() - winOffset,
left = data.my[ 0 ] === "left",
myOffset = data.my[ 0 ] === "left" ?
-data.elemWidth :
@@ -253,7 +254,7 @@ $.ui.position = {
return;
}
var win = data.within,
isWindow = $.isWindow(data.within[0]),
isWindow = $.isWindow( data.within[0] ),
winOffset = isWindow ? 0 : win.offset().top,
outerHeight = isWindow ? win.height() : win.outerHeight(),
overTop = data.collisionPosition.top - winOffset,

0 comments on commit 9e4e359

Please sign in to comment.
You can’t perform that action at this time.