summaryrefslogtreecommitdiff
path: root/lib/position.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2011-12-11 00:10:32 +0400
committerAndrew Dolgov <[email protected]>2011-12-11 00:10:32 +0400
commitf37e541a8f6ae5dc0955e0bf4e90e86dd7537e1d (patch)
tree2cf3de358ed45eac8c298dd9b5e12f50d07a6404 /lib/position.js
parent2ea34cc1501409f9f62d83f43de3ee494b2d73db (diff)
parentb167df5e60143efbd4cc9121b7c4825f4f6608d1 (diff)
Merge branch 'master' of github.com:gothfox/Tiny-Tiny-RSS
Diffstat (limited to 'lib/position.js')
-rw-r--r--lib/position.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/position.js b/lib/position.js
index 29bb9a5ca..43ea85f76 100644
--- a/lib/position.js
+++ b/lib/position.js
@@ -4,8 +4,8 @@ Position.GetWindowSize = function(w) {
w = w ? w : window;
var width = w.innerWidth || (w.document.documentElement.clientWidth || w.document.body.clientWidth);
var height = w.innerHeight || (w.document.documentElement.clientHeight || w.document.body.clientHeight);
- return [width, height]
-}
+ return [width, height];
+};
/* http://textsnippets.com/posts/show/836 */
@@ -25,7 +25,7 @@ Position.Center = function(element, parent) {
}
element.style.top = (ph/2) - (h/2) - Position.deltaY + "px";
element.style.left = (pw/2) - (w/2) - Position.deltaX + "px";
-}
+};