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

added support for data attributes if available instead of classes #21

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tomjn
Copy link

@tomjn tomjn commented Jan 23, 2014

Implements #20

If a data-chained attribute is present, it will be used, if it isn't, it'll fallback to the class based system currently used. This solves issues such as values containing spaces etc causing problems, without breaking existing usage.

I also added parameters back into the jQuery.each calls and used those instead of this. Also some minor optimisations by only doing $(element) once and reusing the result.

@tuupola tuupola added the 2.0 label Apr 8, 2014
@tuupola tuupola self-assigned this Apr 8, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants