mirror of
https://github.com/jquery/jquery.git
synced 2026-01-24 20:48:01 -05:00
Fix jQuery #13251: use slice instead of substring
This commit is contained in:
@@ -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 src/sizzle updated: c04fce3a7e...200c872412
Reference in New Issue
Block a user