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

Remove clondeNode IE8 workaround #77

Merged
merged 1 commit into from
May 29, 2019
Merged

Conversation

cherifGsoul
Copy link
Member

  • Remove clondeNode function needed for IE8
  • Remove clonesWork function

Fixes #65

@cherifGsoul cherifGsoul requested a review from matthewp May 29, 2019 13:13

return copy;
};
var cloneNode = function(el){
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we remove this function and just call el.cloneNode(true) wherever this function is currently used?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, but what if this

makeTarget.cloneNode = cloneNode;
is called elsewhere in another package?

Copy link
Member Author

Choose a reason for hiding this comment

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

Done!

Copy link
Contributor

Choose a reason for hiding this comment

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

Sorry, I didn't see that it was being exported. For that reason I think we should keep it in for backwards compatibility. Sorry for overlooking that.

Copy link
Member Author

@cherifGsoul cherifGsoul May 29, 2019

Choose a reason for hiding this comment

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

@matthewp it is fixed!

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks, looks good to me then.

@cherifGsoul cherifGsoul force-pushed the i65-remove-ie8-cloneNode branch from e67c7e4 to 23bd5d8 Compare May 29, 2019 15:13
@cherifGsoul cherifGsoul merged commit 5e49c4b into master May 29, 2019
@cherifGsoul cherifGsoul deleted the i65-remove-ie8-cloneNode branch May 29, 2019 16:08
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.

Remove cloneNode code?
2 participants