Permalink
Browse files

Don't output null properties.

  • Loading branch information...
1 parent 2432650 commit 664c7197dfd45dd510087d4c5381c43af8a91e9a @mbostock mbostock committed Dec 31, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/topojson/topology.js
View
@@ -150,7 +150,7 @@ module.exports = function(objects, options) {
var properties0, properties1 = {}, key0, key1;
delete geometry.properties;
for (var key0 in properties0) {
- if ((key1 = propertyFilter(key0, geometry)) != null) {
+ if ((key1 = propertyFilter(key0, geometry)) != null && properties0[key0] != null) {
properties1[key1] = properties0[key0];
geometry.properties = properties1;
}

0 comments on commit 664c719

Please sign in to comment.