瀏覽代碼

Fix lazy() ClassCast

tags/gwtquery-project-1.5-beta1
Maxime Mériouma-Caron 8 年之前
父節點
當前提交
069a3de264
共有 1 個檔案被更改,包括 2 行新增1 行删除
  1. 2
    1
      gwtquery-core/src/main/java/com/google/gwt/query/rebind/LazyGenerator.java

+ 2
- 1
gwtquery-core/src/main/java/com/google/gwt/query/rebind/LazyGenerator.java 查看文件

@@ -207,7 +207,7 @@ public class LazyGenerator extends Generator {
}

sw.println(
"ctx = GQuery.$(getElement()).as(" + nonLazyType.getQualifiedSourceName() + "."
"ctx = GQuery.$((Element) getElement()).as(" + nonLazyType.getQualifiedSourceName() + "."
+ classID + ");");
sw.println("for (int i = 0; i < closures.length(); i++) {");
sw.indent();
@@ -220,5 +220,6 @@ public class LazyGenerator extends Generator {
sw.println("};");
sw.outdent();
sw.println("}");
treeLogger.log(TreeLogger.Type.ERROR, sw.toString());
}
}

Loading…
取消
儲存