Commit 37eb6125 authored by Richard Gibson's avatar Richard Gibson

Fix jQuery #13251: use slice instead of substring

parent 64bb0c41
......@@ -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 ] );
}
......
Subproject commit c04fce3a7e3c74ba885a7537e4c39141666cbfe9
Subproject commit 200c8724121819f4a6b1f1d155ef9361d0a27518
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