Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8a89c30
commit 2bd0482
Showing
6 changed files
with
35 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1 +1,2 @@ | |||
* crlf=input | # Automatically normalize line endings for all text-based files | ||
* text=auto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1 +1 @@ | |||
.DS_Store | .DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,11 @@ | |||
{ | |||
"name": "jquery-custom-data-attributes", | |||
"version": "1.0.0", | |||
"main": "jquery.dataAttr.js", | |||
"dependencies": { | |||
"jquery": "<=1.4.1" | |||
}, | |||
"ignore": [ | |||
".*" | |||
] | |||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,9 +1,4 @@ | |||
/*! | /*! http://git.io/jcda v1.0.0 by @mathias */ | ||
* HTML5 custom data attributes plugin for jQuery v1.0 | ;jQuery.fn.dataAttr = function(attr, val) { | ||
* @link http://github.com/mathiasbynens/HTML5-custom-data-attributes-plugin-for-jQuery | |||
* @description An easy setter/getter for HTML5 data-* attributes | |||
* @author Mathias Bynens <http://mathiasbynens.be/> | |||
*/ | |||
jQuery.fn.dataAttr = function(attr, val) { | |||
return val ? this.attr('data-' + attr, val) : this.attr('data-' + attr); | return val ? this.attr('data-' + attr, val) : this.attr('data-' + attr); | ||
}; | }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,7 +1,2 @@ | |||
/*! | /*! http://git.io/jcda v1.0.0 by @mathias */ | ||
* HTML5 custom data attributes plugin for jQuery v1.0 | ;jQuery.fn.dataAttr=function(a,b){return b?this.attr("data-"+a,b):this.attr("data-"+a)}; | ||
* @link http://github.com/mathiasbynens/HTML5-custom-data-attributes-plugin-for-jQuery | |||
* @description An easy setter/getter for HTML5 data-* attributes | |||
* @author Mathias Bynens <http://mathiasbynens.be/> | |||
*/ | |||
jQuery.fn.dataAttr=function(a,v){return v?this.attr('data-'+a,v):this.attr('data-'+a)}; |