[Jifty-commit] jifty branch, master, updated. jifty-1.10228-27-ga954ce3
Jifty commits
jifty-commit at lists.jifty.org
Wed May 18 02:47:56 EDT 2011
The branch, master has been updated
via a954ce3c9332bcaa5efc2a329bd98b513761557e (commit)
from bb9b41506b776128e137ed1bf3802822ed389dff (commit)
Summary of changes:
share/web/static/js/cssQuery-jquery.js | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
- Log -----------------------------------------------------------------
commit a954ce3c9332bcaa5efc2a329bd98b513761557e
Author: Chia-liang Kao <clkao at clkao.org>
Date: Wed May 18 14:46:59 2011 +0800
Do not repeatedly warn about cssQuery deprecation.
Somehow chrome's developer tools is trigger this.
diff --git a/share/web/static/js/cssQuery-jquery.js b/share/web/static/js/cssQuery-jquery.js
index 1fef776..310da08 100644
--- a/share/web/static/js/cssQuery-jquery.js
+++ b/share/web/static/js/cssQuery-jquery.js
@@ -6,12 +6,14 @@ var cssQuery = function() {
// All public interfaces are showing alert instead of doing the realthing.
// Deep compatibiliy isn't going to be implemented.
var msg = "This implementation of cssQuery is really a wrapper to jQuery. No compatibility is ensured. Please use jQuery instead.";
-
+ var warned = 0;
cssQuery.toString = function() {
return "function() { [" + msg + "] }";
};
cssQuery.clearCache = cssQuery.addModule = cssQuery.valueOf = function() {
+ if (warned) return;
+ ++warned;
alert(msg);
};
-----------------------------------------------------------------------
More information about the Jifty-commit
mailing list