]> source.dussan.org Git - gwtquery.git/commitdiff
let addLiveEvents() method calls
authorJulien Dramaix <julien.dramaix@gmail.com>
Thu, 7 Apr 2011 03:48:06 +0000 (03:48 +0000)
committerJulien Dramaix <julien.dramaix@gmail.com>
Thu, 7 Apr 2011 03:48:06 +0000 (03:48 +0000)
gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java

index 1491ea11f2191c1e9863c0ffeddfdfed15893bb3..e695872231a0c030ffe6cdf09aea99becffcf1a2 100644 (file)
@@ -352,7 +352,7 @@ public class GQuery implements Lazy<GQuery, LazyGQuery> {
       n = n.getLastChild();\r
     }\r
     // TODO: add fixes for IE TBODY issue\r
-    return $((NodeList<Element>) n.getChildNodes().cast());\r
+    return $((NodeList<Element>) n.getChildNodes().cast()).as(Events).addLiveEvents();\r
   }\r
 \r
   protected static <S> Object data(Element item, String name, S value) {\r
@@ -972,7 +972,7 @@ public class GQuery implements Lazy<GQuery, LazyGQuery> {
     GQuery ret = new GQuery(result);\r
     ret.currentContext = currentContext;\r
     ret.currentSelector = currentSelector;\r
-    return ret;\r
+    return ret.as(Events).addLiveEvents();\r
   }\r
   \r
   /**\r