]> source.dussan.org Git - jquery.git/commitdiff
Fix jQuery #13251: use slice instead of substring
authorRichard Gibson <richard.gibson@gmail.com>
Thu, 17 Jan 2013 22:00:29 +0000 (17:00 -0500)
committerRichard Gibson <richard.gibson@gmail.com>
Thu, 17 Jan 2013 22:00:29 +0000 (17:00 -0500)
src/data.js
src/sizzle

index eaa483813c5ac68486a22a8ed7dfa0190ac7de58..02cf90ba538bc1884932f6f0ffbc36d1ec64ffe1 100644 (file)
@@ -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 ] );
                                                }
index c04fce3a7e3c74ba885a7537e4c39141666cbfe9..200c8724121819f4a6b1f1d155ef9361d0a27518 160000 (submodule)
@@ -1 +1 @@
-Subproject commit c04fce3a7e3c74ba885a7537e4c39141666cbfe9
+Subproject commit 200c8724121819f4a6b1f1d155ef9361d0a27518