[Jifty-commit] r4678 - in jifty/branches/cssquery-refactor: share/web/static/js/cssquery

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Thu Dec 13 12:55:48 EST 2007


Author: gugod
Date: Thu Dec 13 12:55:48 2007
New Revision: 4678

Added:
   jifty/branches/cssquery-refactor/share/web/static/js/cssquery/cssQuery-jquery.js   (contents, props changed)
Modified:
   jifty/branches/cssquery-refactor/lib/Jifty/Web.pm

Log:
Rewrite the cssQuery() function with jQuery(), and remove whole
old cssQuery lib from js. 


Modified: jifty/branches/cssquery-refactor/lib/Jifty/Web.pm
==============================================================================
--- jifty/branches/cssquery-refactor/lib/Jifty/Web.pm	(original)
+++ jifty/branches/cssquery-refactor/lib/Jifty/Web.pm	Thu Dec 13 12:55:48 2007
@@ -41,10 +41,7 @@
     prototype.js
     jquery-1.2.js
     jquery_noconflict.js
-    cssquery/cssQuery.js
-    cssquery/cssQuery-level2.js
-    cssquery/cssQuery-level3.js
-    cssquery/cssQuery-standard.js
+    cssquery/cssQuery-jquery.js
     behaviour.js
     scriptaculous/builder.js
     scriptaculous/effects.js

Added: jifty/branches/cssquery-refactor/share/web/static/js/cssquery/cssQuery-jquery.js
==============================================================================
--- (empty file)
+++ jifty/branches/cssquery-refactor/share/web/static/js/cssquery/cssQuery-jquery.js	Thu Dec 13 12:55:48 2007
@@ -0,0 +1,15 @@
+var cssQuery = function() {
+    var cssQuery = function(a, c) {
+        var q = jQuery.makeArray( jQuery(a,c) );
+    }
+
+    // All public interfaces are showing alert instead of doing the realthing.
+    // Deep compatibiliy isn't going to be implemented.
+    cssQuery.toString = cssQuery.clearCache = cssQuery.addModule = cssQuery.valueOf = function() {
+        var msg = "This implementation of cssQuery is really a wrapper to jQuery. No compatibility is ensured. Please use jQuery instead.";
+        alert(msg);
+    };
+
+    return cssQuery;
+
+}();


More information about the Jifty-commit mailing list