From c14e14a2bc81d04b49bea7feda60fafc0f276624 Mon Sep 17 00:00:00 2001 From: jdramaix Date: Wed, 7 Nov 2012 22:04:23 +0100 Subject: html element is always considered as attached --- .../src/main/java/com/google/gwt/query/client/js/JsUtils.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'gwtquery-core/src') diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsUtils.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsUtils.java index 787eb07c..ea3aaab8 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsUtils.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsUtils.java @@ -280,11 +280,11 @@ public class JsUtils { * Be careful : This method works only on node that should be inserted within the body node. */ public static boolean isDetached(Node n) { - assert n != null; - - if ("html".equalsIgnoreCase(n.getNodeName())){ - return true; - } + assert n != null; + + if ("html".equalsIgnoreCase(n.getNodeName())){ + return false; + } return !getOwnerDocument(n).getBody().isOrHasChild(n); } -- cgit v1.2.3