Created
November 16, 2011 17:44
-
-
Save bartvde/1370786 to your computer and use it in GitHub Desktop.
fm_diff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/script/plugins/FeatureManager.js b/src/script/plugins/FeatureManager.js | |
index f1ee3ff..1e18616 100644 | |
--- a/src/script/plugins/FeatureManager.js | |
+++ b/src/script/plugins/FeatureManager.js | |
@@ -408,7 +408,8 @@ gxp.plugins.FeatureManager = Ext.extend(gxp.plugins.Tool, { | |
this.target.on("beforelayerselectionchange", this.setLayer, this); | |
} | |
if (this.layer) { | |
- this.target.createLayerRecord(this.layer, this.setLayer, this); | |
+ var config = Ext.apply({}, this.layer); | |
+ this.target.createLayerRecord(config, this.setLayer, this); | |
} | |
this.on("layerchange", this.setSchema, this); | |
return true; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment