Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Don't output null properties.

  • Loading branch information...
commit 664c7197dfd45dd510087d4c5381c43af8a91e9a 1 parent 2432650
@mbostock authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/topojson/topology.js
View
2  lib/topojson/topology.js
@@ -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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.