]> source.dussan.org Git - gwtquery.git/commitdiff
attr signature changed in GQuery. Adding jsquery.js to the repo so as people could...
authorManolo Carrasco <manolo@apache.org>
Tue, 6 Sep 2011 06:59:16 +0000 (06:59 +0000)
committerManolo Carrasco <manolo@apache.org>
Tue, 6 Sep 2011 06:59:16 +0000 (06:59 +0000)
jsquery/src/main/java/gwtquery/jsquery/JsQuery.gwt.xml
jsquery/src/main/java/gwtquery/jsquery/client/JQ.java
jsquery/src/main/java/gwtquery/jsquery/public/JsQuery.html

index efc0d801d6662b5ea7a4342ec76e07c81b13c043..6ccb43e28fa7f8272242735a87f98eccc8fedd54 100644 (file)
@@ -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' />
index 8596b1cb660f583c6844a924d9751a2381cbe265..b7a3b0b11f9901fe647929d56b06c57fd0f0270c 100644 (file)
@@ -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;}
index 2af0500470fb61f06ad0d0420e51dd9da10b541b..d8aeeefef793816fa9e8d34c8c71354b052ecf97 100644 (file)
@@ -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>