Skip to content

Commit 6742ffa

Browse files
authored
Core: Replace deprecated substr with slice
Closes gh-149
1 parent e5e6dcc commit 6742ffa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jquery.color.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ color.fn = jQuery.extend( color.prototype, {
452452
return "#" + jQuery.map( rgba, function( v ) {
453453

454454
// default to 0 when nulls exist
455-
return ( "0" + ( v || 0 ).toString( 16 ) ).substr( -2 );
455+
return ( "0" + ( v || 0 ).toString( 16 ) ).slice( -2 );
456456
} ).join( "" );
457457
},
458458
toString: function() {

0 commit comments

Comments
 (0)