Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Test new layer interface. Fixes #87

  • Loading branch information...
commit 53fd0fce7b8a4908a1b16fb0d5d0c1e94705a751 1 parent 70d0a59
@tmcw tmcw authored
Showing with 1 addition and 4 deletions.
  1. +1 −4 src/map.js
View
5 src/map.js
@@ -429,10 +429,7 @@
addLayer: function(layer) {
layer = this.coerceLayer(layer);
this.layers.push(layer);
- // make sure layer.parent doesn't already have a parentNode
- if (!layer.parent.parentNode) {
- this.parent.appendChild(layer.parent);
- }
+ this.parent.appendChild(layer.parent);
layer.map = this; // TODO: remove map property from MM.Layer?
return this;
},
Please sign in to comment.
Something went wrong with that request. Please try again.