aboutsummaryrefslogtreecommitdiffstats
path: root/gwtquery-core/src
diff options
context:
space:
mode:
authorjdramaix <julien.dramaix@gmail.com>2012-11-07 22:04:23 +0100
committerjdramaix <julien.dramaix@gmail.com>2012-11-07 22:04:23 +0100
commitc14e14a2bc81d04b49bea7feda60fafc0f276624 (patch)
treec557a95fab42df3fdf9691e745579f7c6c2460be /gwtquery-core/src
parent726d9ce3c8e66dd0177966ad0a837ff17ce236d2 (diff)
downloadgwtquery-c14e14a2bc81d04b49bea7feda60fafc0f276624.tar.gz
gwtquery-c14e14a2bc81d04b49bea7feda60fafc0f276624.zip
html element is always considered as attached
Diffstat (limited to 'gwtquery-core/src')
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsUtils.java10
1 files changed, 5 insertions, 5 deletions
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);
}