Commit 8a0f7dd1 authored by Julien Cigar's avatar Julien Cigar
Browse files

fix type

parent 137b92ac
...@@ -443,8 +443,7 @@ ...@@ -443,8 +443,7 @@
*/ */
Yeti.DOM.getWindowSize = function() { Yeti.DOM.getWindowSize = function() {
return return typeof(window.innerHeight) == 'number' ? {
typeof(window.innerHeight) == 'number' ? {
height : window.innerHeight, height : window.innerHeight,
width : window.innerWidth width : window.innerWidth
} : document.body && document.body.clientHeight ? { } : document.body && document.body.clientHeight ? {
...@@ -454,7 +453,7 @@ ...@@ -454,7 +453,7 @@
document.documentElement.clientHeight ? { document.documentElement.clientHeight ? {
height : document.documentElement.clientHeight, height : document.documentElement.clientHeight,
width : document.documentElement.clientWidth width : document.documentElement.clientWidth
} : undefined; } : undefined
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment