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

fix for 🐛 #378 #379

Merged
merged 1 commit into from
Jun 11, 2018
Merged

fix for 🐛 #378 #379

merged 1 commit into from
Jun 11, 2018

Conversation

gcmznt
Copy link
Contributor

@gcmznt gcmznt commented May 18, 2018

Removed condition to switch between getElementById and querySelector in toElement method.

First of all because the conditions does not handle well edge cases as stated in the issue #378, and then because the performance gain obtained using getElementById is lost executing the condition in almost every browser. (some tests here: https://jsperf.com/conditional-getelementbyid)

@jbalsas jbalsas merged commit 74b8f38 into metal:develop Jun 11, 2018
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