Skip to content
Permalink
Browse files

Fix jQuery #13251: use slice instead of substring

(cherry picked from commit 37eb612)
  • Loading branch information...
gibson042 committed Jan 17, 2013
1 parent 50290b8 commit 8871218cdf37fa0a3e0457882828648e6a40164a
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/data.js
  2. +1 −1 src/sizzle
@@ -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 ] );
}
Submodule sizzle updated 1 files
+2 −3 sizzle.js

0 comments on commit 8871218

Please sign in to comment.
You can’t perform that action at this time.