Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added a note about `.data()` supporting custom `data-*` attributes by…

… default as of jQuery 1.4.3.
  • Loading branch information...
commit 8a89c30cf4b0ec336d5744ff59561515fdbcf2b6 1 parent 4f41baa
@mathiasbynens authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  README.md
View
2  README.md
@@ -29,6 +29,8 @@ However, it does allow you to write *even more readable code*. Personally, I lik
Since `.dataAttr('foo')` minifies to `.x('foo')`, while `.attr('data-foo')` minifies to `.y('data-foo')`, using this plugin can save you some bytes after minification, especially when dealing with a lot of data attributes in your code.
+**Note:** As of jQuery 1.4.3, [`.data()`](http://api.jquery.com/data/) maps to custom `data-*` attributes by default, rendering this plugin redundant. It can still be used for older versions of jQuery though.
+
## Credits
_– [Mathias](http://mathiasbynens.be/)_
Please sign in to comment.
Something went wrong with that request. Please try again.