Merge pull request #631 from jorix/format_undefined

Avoid breaking the "OpenLayers.String.format" execution
This commit is contained in:
Marc Jansen
2013-04-23 13:54:15 -07:00
2 changed files with 5 additions and 3 deletions

View File

@@ -127,7 +127,9 @@ OpenLayers.String = {
if (i == 0) {
replacement = context;
}
if (replacement === undefined) {
break;
}
replacement = replacement[subs[i]];
}