Skip to content

Instantly share code, notes, and snippets.

@t9md
Created May 17, 2017 06:01
Show Gist options
  • Save t9md/2362e8ea529acf3fa3361e05c226b559 to your computer and use it in GitHub Desktop.
Save t9md/2362e8ea529acf3fa3361e05c226b559 to your computer and use it in GitHub Desktop.
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