From a8518622dd9c7a6a6209c856d600966c6d3ca5c1 Mon Sep 17 00:00:00 2001 From: Fabien Meghazi Date: Thu, 8 Nov 2012 14:20:01 +0100 Subject: [PATCH] [FIX] Check if console exists before using it bzr revid: fme@openerp.com-20121108132001-jg5cuqszl2qemy92 --- addons/web/static/lib/jquery/jquery-1.8.2.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); };