[pLog-svn] r4802 - plog/trunk/js/ui

oscar at devel.lifetype.net oscar at devel.lifetype.net
Wed Feb 21 08:35:16 EST 2007


Author: oscar
Date: 2007-02-21 08:35:16 -0500 (Wed, 21 Feb 2007)
New Revision: 4802

Modified:
   plog/trunk/js/ui/overlay.js
Log:
And another. It seems like IE is pretty picky about variables declared ad-hoc as opposed to using 'var'


Modified: plog/trunk/js/ui/overlay.js
===================================================================
--- plog/trunk/js/ui/overlay.js	2007-02-21 13:33:33 UTC (rev 4801)
+++ plog/trunk/js/ui/overlay.js	2007-02-21 13:35:16 UTC (rev 4802)
@@ -44,6 +44,8 @@
 		winSize = this.getWindowSize();
 		y = this.mouseY(e);
 		x = this.mouseX(e);
+        var top;
+        var left;
 		if( y + 4 + this.params.height > winSize.height ) {
 			// display the pop-up upwards instead of downwards, unless there is no space upwards either...
 			top = (y - 8 - this.params.height);			
@@ -185,4 +187,4 @@
    		return evt.clientY + (document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop);
 	else 
 		return 0;
-}
\ No newline at end of file
+}



More information about the pLog-svn mailing list