From eb1c4d0f93bcaf77bfe00adea11df5d7d40c8c20 Mon Sep 17 00:00:00 2001 From: Fabien Meghazi Date: Tue, 30 Oct 2012 15:05:29 +0100 Subject: [PATCH] [ADD] Add console warning on Deferred.pipe() usage bzr revid: fme@openerp.com-20121030140529-nzhxwb84vf2a553c --- addons/web/static/lib/jquery/jquery-1.8.2.js | 6 +++++- 1 file changed, 5 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 d4f3bb38cda..1ec3382a6a3 100644 --- a/addons/web/static/lib/jquery/jquery-1.8.2.js +++ b/addons/web/static/lib/jquery/jquery-1.8.2.js @@ -1149,7 +1149,11 @@ jQuery.extend({ deferred = {}; // Keep pipe for back-compat - promise.pipe = promise.then; + //promise.pipe = promise.then; + promise.pipe = function() { + console.error("$.Deferred().pipe() is deprecated. Use .then() instead."); + return promise.then.apply(this, arguments); + }; // Add list-specific methods jQuery.each( tuples, function( i, tuple ) {