summaryrefslogtreecommitdiff
path: root/addons/web/static/lib/jquery
diff options
context:
space:
mode:
authorFabien Meghazi <fme@openerp.com>2012-11-08 14:20:01 +0100
committerFabien Meghazi <fme@openerp.com>2012-11-08 14:20:01 +0100
commita8518622dd9c7a6a6209c856d600966c6d3ca5c1 (patch)
treeaf39ae39954d19c514760e943a0b5d245bdefbbb /addons/web/static/lib/jquery
parent85448373c8cb4ba78d9b5974ddef0f0cf10960bc (diff)
[FIX] Check if console exists before using it
bzr revid: fme@openerp.com-20121108132001-jg5cuqszl2qemy92
Diffstat (limited to 'addons/web/static/lib/jquery')
-rw-r--r--addons/web/static/lib/jquery/jquery-1.8.2.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/addons/web/static/lib/jquery/jquery-1.8.2.js b/addons/web/static/lib/jquery/jquery-1.8.2.js
index 1ec3382a6a3..035ab38245b 100644
--- a/addons/web/static/lib/jquery/jquery-1.8.2.js
+++ b/addons/web/static/lib/jquery/jquery-1.8.2.js
@@ -1151,7 +1151,10 @@ jQuery.extend({
// Keep pipe for back-compat
//promise.pipe = promise.then;
promise.pipe = function() {
- console.error("$.Deferred().pipe() is deprecated. Use .then() instead.");
+ if (window.console) {
+ console.error && console.error("$.Deferred().pipe() is deprecated. Use .then() instead.");
+ console.trace && console.trace();
+ }
return promise.then.apply(this, arguments);
};