address review by @fredj

This commit is contained in:
Bart van den Eijnden
2013-05-22 13:01:41 +02:00
parent dc922b4ffa
commit 969b47c78c
3 changed files with 22 additions and 3 deletions

View File

@@ -127,6 +127,8 @@ ol.parser.GPX = function(opt_options) {
var value = this.getChildValue(node);
if (obj.properties) {
obj.properties[local] = value.replace(this.regExes.trimSpace, '');
} else {
obj[local] = value.replace(this.regExes.trimSpace, '');
}
}
}