From 37eb6125c0fb0bec4e0d043bc78110b4f49f3aa6 Mon Sep 17 00:00:00 2001 From: Richard Gibson Date: Thu, 17 Jan 2013 17:00:29 -0500 Subject: [PATCH] Fix jQuery #13251: use slice instead of substring --- src/data.js | 2 +- src/sizzle | 2 +- 2 files changed, 2 insertions(+), 2 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 index c04fce3a7..200c87241 160000 --- a/src/sizzle +++ b/src/sizzle @@ -1 +1 @@ -Subproject commit c04fce3a7e3c74ba885a7537e4c39141666cbfe9 +Subproject commit 200c8724121819f4a6b1f1d155ef9361d0a27518 -- 2.39.5