Reviewers: ,


Please review this at http://gwt-code-reviews.appspot.com/1691803/

Affected files:
  user/src/com/google/gwt/user/client/ui/FormPanel.java


Index: user/src/com/google/gwt/user/client/ui/FormPanel.java
===================================================================
--- user/src/com/google/gwt/user/client/ui/FormPanel.java       (revision 10954)
+++ user/src/com/google/gwt/user/client/ui/FormPanel.java       (working copy)
@@ -16,6 +16,8 @@
 package com.google.gwt.user.client.ui;

 import com.google.gwt.core.client.GWT;
+import com.google.gwt.core.client.Scheduler;
+import com.google.gwt.core.client.Scheduler.ScheduledCommand;
 import com.google.gwt.dom.client.Document;
 import com.google.gwt.dom.client.Element;
 import com.google.gwt.dom.client.FormElement;
@@ -25,8 +27,6 @@
 import com.google.gwt.safehtml.client.SafeHtmlTemplates;
 import com.google.gwt.safehtml.shared.SafeHtml;
 import com.google.gwt.safehtml.shared.SafeUri;
-import com.google.gwt.user.client.Command;
-import com.google.gwt.user.client.DeferredCommand;
 import com.google.gwt.user.client.Event;
 import com.google.gwt.user.client.ui.impl.FormPanelImpl;
 import com.google.gwt.user.client.ui.impl.FormPanelImplHost;
@@ -644,7 +644,7 @@
     // because clients that detach the form panel when submission is
     // complete can cause some browsers (i.e. Mozilla) to go into an
     // 'infinite loading' state. See issue 916.
-    DeferredCommand.addCommand(new Command() {
+    Scheduler.get().scheduleDeferred(new ScheduledCommand() {
       public void execute() {
fireEvent(new SubmitCompleteEvent(impl.getContents(synthesizedFrame)));
       }


--
http://groups.google.com/group/Google-Web-Toolkit-Contributors

Reply via email to