Created
November 25, 2015 13:46
-
-
Save almost/8a1bea142ebf08c81ec5 to your computer and use it in GitHub Desktop.
Lack of semi-colons let line 2 and 3 combine. Runtime error :(
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export function pagebounds2screen({x, y, width, height}) { | |
let ratio = window.devicePixelRatio | |
[x,y] = page2screen(x, y) | |
width = width * ratio | |
height = height * ratio | |
return {x, y, width, height} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://eslint.org/docs/rules/no-unexpected-multiline