Skip to content

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

Open
tomjn wants to merge 1 commit intotuupola:masterfrom
cftp:master
Open

added support for data attributes if available instead of classes#21
tomjn wants to merge 1 commit intotuupola:masterfrom
cftp:master

Conversation

@tomjn
Copy link
Copy Markdown

@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.

2 participants