From: Richard Gibson Date: Thu, 17 Jan 2013 22:00:29 +0000 (-0500) Subject: Fix jQuery #13251: use slice instead of substring X-Git-Tag: 2.0.0b2~83 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8871218cdf37fa0a3e0457882828648e6a40164a;p=jquery.git Fix jQuery #13251: use slice instead of substring (cherry picked from commit 37eb6125c0fb0bec4e0d043bc78110b4f49f3aa6) --- 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 index c04fce3a7..200c87241 160000 --- a/src/sizzle +++ b/src/sizzle @@ -1 +1 @@ -Subproject commit c04fce3a7e3c74ba885a7537e4c39141666cbfe9 +Subproject commit 200c8724121819f4a6b1f1d155ef9361d0a27518