mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-20 22:39:50 -05:00
Prefer String#substring() over #substr().
Using both in the lib seems confusing.
This commit is contained in:
parent
1376d75e61
commit
0da2baa617
1 changed files with 1 additions and 1 deletions
|
@ -428,7 +428,7 @@ new function() {
|
||||||
item.setRampPoint(percentage ? percentage[1] / 100 : value);
|
item.setRampPoint(percentage ? percentage[1] / 100 : value);
|
||||||
break;
|
break;
|
||||||
case 'xlink:href':
|
case 'xlink:href':
|
||||||
var definition = definitions[value.substr(1)];
|
var definition = definitions[value.substring(1)];
|
||||||
// Use place if we're dealing with a symbol:
|
// Use place if we're dealing with a symbol:
|
||||||
item = definition.place ? definition.place() : definition.clone();
|
item = definition.place ? definition.place() : definition.clone();
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue