summaryrefslogtreecommitdiffstats
path: root/server/src/com/vaadin/ui/AbstractComponent.java
diff options
context:
space:
mode:
authorJohannes Dahlström <johannesd@vaadin.com>2015-04-17 15:15:25 +0300
committerVaadin Code Review <review@vaadin.com>2015-04-17 13:34:08 +0000
commit2d3ed921065acd7761df07b9b403d111bedf33d9 (patch)
treedc8ec260dfee6ad96e1080e7eb0c8fa8e67e18df /server/src/com/vaadin/ui/AbstractComponent.java
parent6ce22d8ad5c9e81cc2e34a70779413fb2c7040d6 (diff)
downloadvaadin-framework-2d3ed921065acd7761df07b9b403d111bedf33d9.tar.gz
vaadin-framework-2d3ed921065acd7761df07b9b403d111bedf33d9.zip
Don't clear element content in AbstractComponent.writeDesign (#17488)
WriteDesign now assumes the element it receives is pristine, so elements cannot be reused without someone else clearing them first. Currently only DesignContext.createElement directly invokes writeDesign, and it always passes a new element to it. Change-Id: Icb777da1d73a28150041914dd9743e7aa0b25e16
Diffstat (limited to 'server/src/com/vaadin/ui/AbstractComponent.java')
-rw-r--r--server/src/com/vaadin/ui/AbstractComponent.java2
1 files changed, 0 insertions, 2 deletions
diff --git a/server/src/com/vaadin/ui/AbstractComponent.java b/server/src/com/vaadin/ui/AbstractComponent.java
index dae073904b..3ceb06b31e 100644
--- a/server/src/com/vaadin/ui/AbstractComponent.java
+++ b/server/src/com/vaadin/ui/AbstractComponent.java
@@ -1239,8 +1239,6 @@ public abstract class AbstractComponent extends AbstractClientConnector
*/
@Override
public void writeDesign(Element design, DesignContext designContext) {
- // clear element contents
- DesignAttributeHandler.clearElement(design);
AbstractComponent def = designContext.getDefaultInstance(this);
Attributes attr = design.attributes();
// handle default attributes