diff options
3 files changed, 9 insertions, 9 deletions
diff --git a/jsquery/src/main/java/gwtquery/jsquery/JsQuery.gwt.xml b/jsquery/src/main/java/gwtquery/jsquery/JsQuery.gwt.xml index efc0d801..6ccb43e2 100644 --- a/jsquery/src/main/java/gwtquery/jsquery/JsQuery.gwt.xml +++ b/jsquery/src/main/java/gwtquery/jsquery/JsQuery.gwt.xml @@ -1,4 +1,4 @@ -<module rename-to='jsquery'> +<module rename-to='dev'> <inherits name='com.google.gwt.query.Query' /> <inherits name='org.timepedia.exporter.Exporter' /> <inherits name='com.google.gwt.junit.JUnit' /> diff --git a/jsquery/src/main/java/gwtquery/jsquery/client/JQ.java b/jsquery/src/main/java/gwtquery/jsquery/client/JQ.java index 8596b1cb..b7a3b0b1 100644 --- a/jsquery/src/main/java/gwtquery/jsquery/client/JQ.java +++ b/jsquery/src/main/java/gwtquery/jsquery/client/JQ.java @@ -111,8 +111,8 @@ public class JQ implements ExportOverlay<GQuery> { public <T extends GQuery> T as(Class<T> plugin) {return null;} // public GQuery attr(Properties properties) {return null;} public String attr(String name) {return null;} - public GQuery attr(String key, Function closure) {return null;} - public GQuery attr(String key, String value) {return null;} +// public GQuery attr(String key, Function closure) {return null;} + public GQuery attr(String key, Object value) {return null;} public GQuery before(GQuery query) {return null;} public GQuery before(Node n) {return null;} public GQuery before(String html) {return null;} diff --git a/jsquery/src/main/java/gwtquery/jsquery/public/JsQuery.html b/jsquery/src/main/java/gwtquery/jsquery/public/JsQuery.html index 2af05004..d8aeeefe 100644 --- a/jsquery/src/main/java/gwtquery/jsquery/public/JsQuery.html +++ b/jsquery/src/main/java/gwtquery/jsquery/public/JsQuery.html @@ -2,18 +2,18 @@ <head> <title>JsQuery</title> <script language="javascript" - src="jsquery.nocache.js" ></script> + src="dev.nocache.js" ></script> </head> <body> <div id='hello' style='display: none'>Hello</div> <script> onJsQueryLoad = function(){ - $('#hello').show(); - alert($('#hello').text()); + $('#hello').show().attr("width", true); + alert($('#hello').text()); } - if ($) { - $(document).ready(onJsQueryLoad); - onJsQueryLoad = null; + if (window.$) { + $(document).ready(onJsQueryLoad); + onJsQueryLoad = null; } </script> </body> |