[Jifty-commit] r4745 -
jifty/branches/cssquery-refactor/share/web/static/js
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Wed Dec 19 03:26:16 EST 2007
Author: gugod
Date: Wed Dec 19 03:26:15 2007
New Revision: 4745
Modified:
jifty/branches/cssquery-refactor/share/web/static/js/cssQuery-jquery.js
Log:
Better not to alert() in toString() for selenium tests.
Modified: jifty/branches/cssquery-refactor/share/web/static/js/cssQuery-jquery.js
==============================================================================
--- jifty/branches/cssquery-refactor/share/web/static/js/cssQuery-jquery.js (original)
+++ jifty/branches/cssquery-refactor/share/web/static/js/cssQuery-jquery.js Wed Dec 19 03:26:15 2007
@@ -5,8 +5,13 @@
// 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.";
+ var msg = "This implementation of cssQuery is really a wrapper to jQuery. No compatibility is ensured. Please use jQuery instead.";
+
+ cssQuery.toString = function() {
+ return "function() { [" + msg + "] }";
+ };
+
+ cssQuery.clearCache = cssQuery.addModule = cssQuery.valueOf = function() {
alert(msg);
};
More information about the Jifty-commit
mailing list