Commit 5e42df05 authored by Jason Bedard's avatar Jason Bedard Committed by Oleg

Use String.slice instead of String.substring in order to save a three bytes. Close gh-1261.

parent 2fc6b658
...@@ -238,7 +238,7 @@ jQuery.fn.extend({ ...@@ -238,7 +238,7 @@ jQuery.fn.extend({
name = attrs[ i ].name; name = attrs[ i ].name;
if ( name.indexOf( "data-" ) === 0 ) { if ( name.indexOf( "data-" ) === 0 ) {
name = jQuery.camelCase( name.substring(5) ); name = jQuery.camelCase( name.slice(5) );
dataAttr( elem, name, data[ name ] ); dataAttr( elem, name, data[ name ] );
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment