]> source.dussan.org Git - vaadin-framework.git/commitdiff
Avoid double attach calls for sub windows (#9011)
authorArtur Signell <artur@vaadin.com>
Thu, 21 Jun 2012 13:11:59 +0000 (16:11 +0300)
committerArtur Signell <artur@vaadin.com>
Thu, 21 Jun 2012 14:11:39 +0000 (17:11 +0300)
src/com/vaadin/ui/Root.java

index 3727d6f251850228bac0a48b3b0713b6123d0ef5..64bfaf57a5f7872bfcb4272192ba8ccf4a849ff9 100644 (file)
@@ -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?