From: Manolo Carrasco Date: Mon, 4 Apr 2011 16:18:12 +0000 (+0000) Subject: null X-Git-Tag: release-1.3.2~436 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=cde651099d68146fe3cc7a379a32ce2b438888e1;p=gwtquery.git null --- diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java index 965a7527..25e7ab95 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java @@ -2579,10 +2579,10 @@ public class GQuery implements Lazy { * for both visible and hidden elements. */ public int scrollTop() { + Element e = get(0); if (e == null) { return 0; } - Element e = get(0); if (e == window || e.getNodeName() == null) { return Window.getScrollTop(); } else if (e == (Node) document) {