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:00:29 -0500 |
commit | 37eb6125c0fb0bec4e0d043bc78110b4f49f3aa6 (patch) | |
tree | 52351b3b279850c8f4bd9eaae775c2b7479ebf99 | |
parent | 64bb0c4135aab74fd5958175deec89b18bb2256a (diff) | |
download | jquery-37eb6125c0fb0bec4e0d043bc78110b4f49f3aa6.tar.gz jquery-37eb6125c0fb0bec4e0d043bc78110b4f49f3aa6.zip |
Fix jQuery #13251: use slice instead of substring
-rw-r--r-- | src/data.js | 2 | ||||
m--------- | src/sizzle | 0 |
2 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 ] ); } diff --git a/src/sizzle b/src/sizzle -Subproject c04fce3a7e3c74ba885a7537e4c39141666cbfe +Subproject 200c8724121819f4a6b1f1d155ef9361d0a2751 |