From: Artur Signell Date: Thu, 21 Jun 2012 13:11:59 +0000 (+0300) Subject: Avoid double attach calls for sub windows (#9011) X-Git-Tag: 7.0.0.alpha3~74 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6e1f6b65b53f2f2e01db5ef4b6c668d5cad5b08d;p=vaadin-framework.git Avoid double attach calls for sub windows (#9011) --- diff --git a/src/com/vaadin/ui/Root.java b/src/com/vaadin/ui/Root.java index 3727d6f251..64bfaf57a5 100644 --- a/src/com/vaadin/ui/Root.java +++ b/src/com/vaadin/ui/Root.java @@ -1177,30 +1177,6 @@ public abstract class Root extends AbstractComponentContainer implements removeListener(CLICK_EVENT_ID, ClickEvent.class, listener); } - /** - * Notifies the child components and windows that the root is attached to - * the application. - */ - @Override - public void attach() { - super.attach(); - for (Window w : windows) { - w.attach(); - } - } - - /** - * Notifies the child components and windows that the root is detached from - * the application. - */ - @Override - public void detach() { - super.detach(); - for (Window w : windows) { - w.detach(); - } - } - @Override public boolean isConnectorEnabled() { // TODO How can a Root be invisible? What does it mean?