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 JQuery dependency. #29

Closed
bklik opened this issue May 2, 2016 · 2 comments
Closed

Remove JQuery dependency. #29

bklik opened this issue May 2, 2016 · 2 comments

Comments

@bklik
Copy link

bklik commented May 2, 2016

Looking at your code, I don't really see why you're using JQuery. You could easily remove this dependency by replacing it with native JavaScript calls.

e.g.
var dom = document.body;
var element = document.querySelector('.class-name');
if(element.classList.contains('class-name') {};
element.addEventListener('click|keydown', function);
etc.

@pzi
Copy link
Contributor

pzi commented May 2, 2016

Dupe of #14

@bklik bklik closed this as completed May 2, 2016
@bklik
Copy link
Author

bklik commented May 2, 2016

Derp

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

No branches or pull requests

2 participants