aboutsummaryrefslogtreecommitdiffstats
path: root/jsquery
diff options
context:
space:
mode:
authorManolo Carrasco <manolo@apache.org>2011-09-06 06:59:16 +0000
committerManolo Carrasco <manolo@apache.org>2011-09-06 06:59:16 +0000
commitaaeb2635d4aa2e9a27958e92f22e6dcd98131861 (patch)
tree93df07c58fa69350b292d0b9bea8c8fcf82d5457 /jsquery
parent914e0a85df99f0826f32d5a80d98c032779484c6 (diff)
downloadgwtquery-aaeb2635d4aa2e9a27958e92f22e6dcd98131861.tar.gz
gwtquery-aaeb2635d4aa2e9a27958e92f22e6dcd98131861.zip
attr signature changed in GQuery. Adding jsquery.js to the repo so as people could test it from http://gwtquery.googlecode.com/api/jsquery.js
Diffstat (limited to 'jsquery')
-rw-r--r--jsquery/src/main/java/gwtquery/jsquery/JsQuery.gwt.xml2
-rw-r--r--jsquery/src/main/java/gwtquery/jsquery/client/JQ.java4
-rw-r--r--jsquery/src/main/java/gwtquery/jsquery/public/JsQuery.html12
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>