Skip to content

Conversation

@unleashurgeek
Copy link
Contributor

Currently when running this library with IE, the tests will crash with a null pointer exception. This is due to window.scrollX and window.scrollY not being supported in IE.

This PR fixes the problem.

Copy link
Member

@glibas glibas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @unleashurgeek,

Thank you for your contribution. Could you please update the PR according to comments.

@@ -1 +1 @@
return window.scrollY; No newline at end of file
Math.max(document.documentElement.scrollTop, document.body.scrollTop); No newline at end of file
Copy link
Member

@glibas glibas Sep 20, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

return statement is missing in get-current-scrollY.js

@glibas glibas self-assigned this Sep 20, 2016
@glibas glibas assigned unleashurgeek and unassigned glibas Sep 20, 2016
@unleashurgeek
Copy link
Contributor Author

Oops.

@glibas glibas merged commit 1e24a98 into assertthat:master Sep 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants