Cleanup style and null check

This commit is contained in:
Tom MacWright
2013-09-17 10:46:49 -04:00
parent ab6c6411bd
commit 7ff9bf4a8f
+2 -2
View File
@@ -81,10 +81,10 @@ iD.svg.Labels = function(projection, context) {
} else {
var str = encodeURIComponent(text).match(/%[CDEFcdef]/g);
if (str == null) {
if (str === null) {
return size / 3 * 2 * text.length;
} else {
return size / 3 * ( 2 * text.length + str.length);
return size / 3 * (2 * text.length + str.length);
}
}
}