mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -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);
|
||||
break;
|
||||
case 'xlink:href':
|
||||
var definition = definitions[value.substr(1)];
|
||||
var definition = definitions[value.substring(1)];
|
||||
// Use place if we're dealing with a symbol:
|
||||
item = definition.place ? definition.place() : definition.clone();
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue