Daniel Kurka has uploaded a new change for review.

  https://gwt-review.googlesource.com/2981


Change subject: FileUpload failed to initialize internal state
......................................................................

FileUpload failed to initialize internal state

fixes issue 5055

Change-Id: I74ccb2617bb301aeaf0845e5c43f724d6247b3ca
---
M user/src/com/google/gwt/user/client/ui/FileUpload.java
1 file changed, 4 insertions(+), 4 deletions(-)



diff --git a/user/src/com/google/gwt/user/client/ui/FileUpload.java b/user/src/com/google/gwt/user/client/ui/FileUpload.java
index dd14e84..978f299 100644
--- a/user/src/com/google/gwt/user/client/ui/FileUpload.java
+++ b/user/src/com/google/gwt/user/client/ui/FileUpload.java
@@ -130,10 +130,7 @@
    * Constructs a new file upload widget.
    */
   public FileUpload() {
-    setElement(Document.get().createFileInputElement());
-    setStyleName("gwt-FileUpload");
-    impl = GWT.create(FileUploadImpl.class);
-    impl.init(this);
+    this(Document.get().createFileInputElement());
   }

   /**
@@ -146,6 +143,9 @@
   protected FileUpload(Element element) {
     assert InputElement.as(element).getType().equalsIgnoreCase("file");
     setElement(element);
+    setStyleName("gwt-FileUpload");
+    impl = GWT.create(FileUploadImpl.class);
+    impl.init(this);
   }

   public HandlerRegistration addChangeHandler(ChangeHandler handler) {

--
To view, visit https://gwt-review.googlesource.com/2981
To unsubscribe, visit https://gwt-review.googlesource.com/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I74ccb2617bb301aeaf0845e5c43f724d6247b3ca
Gerrit-PatchSet: 1
Gerrit-Project: gwt
Gerrit-Branch: master
Gerrit-Owner: Daniel Kurka <[email protected]>

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors
--- You received this message because you are subscribed to the Google Groups "GWT Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to