From 0da2baa61734b5f4c1de0ea752d6172d3ce63a13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Thu, 8 Nov 2012 09:42:51 -0800 Subject: [PATCH] Prefer String#substring() over #substr(). Using both in the lib seems confusing. --- src/svg/SvgImport.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/svg/SvgImport.js b/src/svg/SvgImport.js index f0940200..5ed083b4 100644 --- a/src/svg/SvgImport.js +++ b/src/svg/SvgImport.js @@ -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;