]> source.dussan.org Git - gwtquery.git/commitdiff
Fixes Issue_32
authorManolo Carrasco <manolo@apache.org>
Mon, 3 May 2010 14:06:43 +0000 (14:06 +0000)
committerManolo Carrasco <manolo@apache.org>
Mon, 3 May 2010 14:06:43 +0000 (14:06 +0000)
gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java

index 6bb1e721a0ad2c3b263cae66ffc580d45e4ca16e..46cfefeecf343f47aaf8a73a76bb94d8654c174b 100644 (file)
@@ -194,6 +194,8 @@ public class GQuery implements Lazy<GQuery, LazyGQuery> {
       return this[i];\r
     }-*/;\r
   }\r
+  \r
+  public static final Element window = window();\r
 \r
   public static boolean fxOff = false;\r
 \r
@@ -2626,7 +2628,7 @@ public class GQuery implements Lazy<GQuery, LazyGQuery> {
     return this;\r
   }\r
 \r
-  private native Element window() /*-{\r
+  private static native Element window() /*-{\r
     return $wnd;\r
   }-*/;\r
 }\r