aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Bedard <github@jbedard.ca>2013-05-02 19:01:15 -0700
committerOleg <markelog@gmail.com>2013-05-08 19:56:13 +0400
commit5e42df0517cefa6e81bdc5c3206740a5958b545c (patch)
tree3fc14c8c19bde391382ae1912983b6c3edff2032 /src
parent2fc6b658e8691eb71b1ed038ac94ed7ae7296f29 (diff)
downloadjquery-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.js2
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 ] );
}
}