diff options
author | Jason Bedard <github@jbedard.ca> | 2013-05-02 19:01:15 -0700 |
---|---|---|
committer | Oleg <markelog@gmail.com> | 2013-05-08 19:56:13 +0400 |
commit | 5e42df0517cefa6e81bdc5c3206740a5958b545c (patch) | |
tree | 3fc14c8c19bde391382ae1912983b6c3edff2032 /src | |
parent | 2fc6b658e8691eb71b1ed038ac94ed7ae7296f29 (diff) | |
download | jquery-5e42df0517cefa6e81bdc5c3206740a5958b545c.tar.gz jquery-5e42df0517cefa6e81bdc5c3206740a5958b545c.zip |
Use String.slice instead of String.substring in order to save a three bytes. Close gh-1261.
Diffstat (limited to 'src')
-rw-r--r-- | src/data.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/data.js b/src/data.js index a9b451788..95d06a000 100644 --- a/src/data.js +++ b/src/data.js @@ -238,7 +238,7 @@ jQuery.fn.extend({ name = attrs[ i ].name; if ( name.indexOf( "data-" ) === 0 ) { - name = jQuery.camelCase( name.substring(5) ); + name = jQuery.camelCase( name.slice(5) ); dataAttr( elem, name, data[ name ] ); } } |