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 : ignore range input to restore default behavior #29

Merged
merged 2 commits into from
Sep 13, 2016

Conversation

stity
Copy link
Contributor

@stity stity commented Jun 30, 2016

See #24

@@ -22,6 +22,11 @@
break;
}

//ignore range input element
if (el.nodeName === 'INPUT' && el.hasAttribute('type') && el.getAttribute('type') === 'range') {
Copy link
Owner

Choose a reason for hiding this comment

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

We can safely call getAttribute without checking hasAttribute first, it will return null. I'd remove hasAttribute to avoid another function call.

@lazd
Copy link
Owner

lazd commented Jun 30, 2016

It seems this project still uses tabs for indentation (heh). Can you modify your PR to use tabs as well so the code you added is indented correctly? Thanks!

@stity
Copy link
Contributor Author

stity commented Jun 30, 2016

I think it is all good now.
Thanks for the reactivity.

@lazd
Copy link
Owner

lazd commented Sep 13, 2016

Looks good, thanks @stity!

@lazd lazd merged commit 9cc2c02 into lazd:master Sep 13, 2016
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