summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJoonas Lehtinen <joonas.lehtinen@itmill.com>2007-02-02 19:19:29 +0000
committerJoonas Lehtinen <joonas.lehtinen@itmill.com>2007-02-02 19:19:29 +0000
commitd248abaa33add389846a200b4654922cd07d1bd6 (patch)
tree56a3de6c34c644a245b8099a0bff3ceee4195c96 /src
parent6d4b2b0161eaf9cff64907fd3edb5c36d631c5c8 (diff)
downloadvaadin-framework-d248abaa33add389846a200b4654922cd07d1bd6.tar.gz
vaadin-framework-d248abaa33add389846a200b4654922cd07d1bd6.zip
Fixed really well hidden logic bug (from year 2002) in core class. addComponent or removeComponent should not call attach/detach directly. setParent does just that (as documented in the interface). This should fix those "double calls" to attach/detach. I really hope that this does not break anything.
svn changeset:428/svn branch:toolkit
Diffstat (limited to 'src')
-rw-r--r--src/com/itmill/toolkit/ui/AbstractComponentContainer.java4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/com/itmill/toolkit/ui/AbstractComponentContainer.java b/src/com/itmill/toolkit/ui/AbstractComponentContainer.java
index 953a7f44ae..d8d86c1982 100644
--- a/src/com/itmill/toolkit/ui/AbstractComponentContainer.java
+++ b/src/com/itmill/toolkit/ui/AbstractComponentContainer.java
@@ -170,8 +170,6 @@ extends AbstractComponent implements ComponentContainer {
*/
public void addComponent(Component c) {
c.setParent(this);
- if (getApplication() != null)
- c.attach();
fireComponentAttachEvent(c);
}
@@ -181,8 +179,6 @@ extends AbstractComponent implements ComponentContainer {
* @see com.itmill.toolkit.ui.ComponentContainer#removeComponent(Component)
*/
public void removeComponent(Component c) {
- if (getApplication() != null)
- c.detach();
c.setParent(null);
fireComponentDetachEvent(c);
}