Quickfix for TileMill/#777

This commit is contained in:
Tom MacWright 2011-10-28 16:47:01 -04:00
parent 5413e9e44c
commit e6d2764a95

View File

@ -108,7 +108,7 @@ tree.Definition.prototype.symbolizersToXML = function(env, symbolizers, zoom) {
xml += ' <' + name + ' '; xml += ' <' + name + ' ';
for (var key in attributes) { for (var key in attributes) {
var x = tree.Reference.selector(attributes[key].name); var x = tree.Reference.selector(attributes[key].name);
if (x.serialization && x.serialization === 'content') { if (x && x.serialization && x.serialization === 'content') {
selfclosing = false; selfclosing = false;
tagcontent = attributes[key].eval(env).toXML(env, true); tagcontent = attributes[key].eval(env).toXML(env, true);
} else { } else {