Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed IE issues #1

Merged
merged 1 commit into from
Jan 26, 2017
Merged

Conversation

urkaver
Copy link

@urkaver urkaver commented Jan 25, 2017

1 Replaced element.remove() with element.parentElement.removeChild because IE doesn't support it.
2 Replaced window.scrollX with window.pageXOffset because IE doesn't support it.

…cause IE doesn't support it.

2 Replaced window.scrollX with window.pageXOffset because IE doesn't support it.
@@ -34,7 +34,7 @@
var datetimePickerEl;
var _this = this;
var removeEl = function(el) {
el && el.remove();
el && el.parentElement.removeChild(el);
Copy link
Owner

Choose a reason for hiding this comment

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

Why is this change required?

Copy link
Author

Choose a reason for hiding this comment

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

Because IE doesn't recognize function remove and throw error with message "Object doesn't support property or method 'remove'". More details here: https://developer.mozilla.org/en-US/docs/Web/API/ChildNode/remove

@subramaniam-s17 subramaniam-s17 merged commit fb5044e into subramaniam-s17:master Jan 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants