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

Since the metadata method is include in core jQuery past 1.4.3 is it redundent to still use the metadata plugin? #13

Open
adam-s opened this issue Apr 23, 2011 · 1 comment

Comments

@adam-s
Copy link

adam-s commented Apr 23, 2011

Although it is nice to be able to include the data in a class attribute, the data() method for html5 data- attribute is included in jQuery core now. http://blog.jquery.com/2010/10/16/jquery-143-released/

"To start the primary functionality provided by the jQuery Metadata plugin has been moved into core. HTML 5 data- attributes will be automatically pulled in to jQuery’s data object."

@adam-s
Copy link
Author

adam-s commented May 19, 2011

The jQuery data() function has now added the metadata() plugin functionality to it. However, it only uses the html5 data attribute, 'data-[arbitrary name of attribute]'. Before to call the metadata $(element).metadata('data-[arbitrary-name-of-attribute]) was used, now in jQuery 1.4.3 it's simple $(element).data('[arbitrary-name-of-attribute]'). I forked jMapping and changed the code accordingly. Not that it really matter.

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

1 participant