Prefer String#substring() over #substr().

Using both in the lib seems confusing.
This commit is contained in:
Jürg Lehni 2012-11-08 09:42:51 -08:00
parent 1376d75e61
commit 0da2baa617

View file

@ -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;