diff options
author | Julien Dramaix <julien.dramaix@gmail.com> | 2011-04-07 03:48:06 +0000 |
---|---|---|
committer | Julien Dramaix <julien.dramaix@gmail.com> | 2011-04-07 03:48:06 +0000 |
commit | 48a8cba867be09eee3d887c7eb22096e4f223660 (patch) | |
tree | 967edddf13d6638d82630af705f5f103c759a8b2 /gwtquery-core | |
parent | 35d188ecafbee51528c3f91b619665733ecf4ca8 (diff) | |
download | gwtquery-48a8cba867be09eee3d887c7eb22096e4f223660.tar.gz gwtquery-48a8cba867be09eee3d887c7eb22096e4f223660.zip |
let addLiveEvents() method calls
Diffstat (limited to 'gwtquery-core')
-rw-r--r-- | gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java | 4 |
1 files changed, 2 insertions, 2 deletions
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 1491ea11..e6958722 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 @@ -352,7 +352,7 @@ public class GQuery implements Lazy<GQuery, LazyGQuery> { n = n.getLastChild();
}
// TODO: add fixes for IE TBODY issue
- return $((NodeList<Element>) n.getChildNodes().cast());
+ return $((NodeList<Element>) n.getChildNodes().cast()).as(Events).addLiveEvents();
}
protected static <S> Object data(Element item, String name, S value) {
@@ -972,7 +972,7 @@ public class GQuery implements Lazy<GQuery, LazyGQuery> { GQuery ret = new GQuery(result);
ret.currentContext = currentContext;
ret.currentSelector = currentSelector;
- return ret;
+ return ret.as(Events).addLiveEvents();
}
/**
|