Created
May 17, 2017 06:01
-
-
Save t9md/2362e8ea529acf3fa3361e05c226b559 to your computer and use it in GitHub Desktop.
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
validateScrollTop = (editorElement, msg) -> | |
value1 = editorElement.getScrollTop() | |
value2 = editorElement.component.getScrollTop() | |
console.log msg, [value1, value2] | |
unless value2? | |
throw Error(msg) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment