diff options
author | Richard Gibson <richard.gibson@gmail.com> | 2013-01-17 17:00:29 -0500 |
---|---|---|
committer | Richard Gibson <richard.gibson@gmail.com> | 2013-01-17 17:01:42 -0500 |
commit | 8871218cdf37fa0a3e0457882828648e6a40164a (patch) | |
tree | b66a3024219456ef8405c5f9f8c53eef950cc8ea /src/data.js | |
parent | 50290b8ffb05c504d3866a619f282bf795bc01f6 (diff) | |
download | jquery-8871218cdf37fa0a3e0457882828648e6a40164a.tar.gz jquery-8871218cdf37fa0a3e0457882828648e6a40164a.zip |
Fix jQuery #13251: use slice instead of substring
(cherry picked from commit 37eb6125c0fb0bec4e0d043bc78110b4f49f3aa6)
Diffstat (limited to 'src/data.js')
-rw-r--r-- | src/data.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/data.js b/src/data.js index eaa483813..02cf90ba5 100644 --- a/src/data.js +++ b/src/data.js @@ -253,7 +253,7 @@ jQuery.fn.extend({ name = attrs[i].name; if ( !name.indexOf( "data-" ) ) { - name = jQuery.camelCase( name.substring(5) ); + name = jQuery.camelCase( name.slice(5) ); dataAttr( elem, name, data[ name ] ); } |