summaryrefslogtreecommitdiff
path: root/addons/web
diff options
context:
space:
mode:
authorFabien Meghazi <fme@openerp.com>2012-10-30 15:05:29 +0100
committerFabien Meghazi <fme@openerp.com>2012-10-30 15:05:29 +0100
commiteb1c4d0f93bcaf77bfe00adea11df5d7d40c8c20 (patch)
tree98c201943ae29d3fa115617f0788739df06716a8 /addons/web
parent1210ad9321f2dc1661570d098a1ee3cdf636f8ce (diff)
[ADD] Add console warning on Deferred.pipe() usage
bzr revid: fme@openerp.com-20121030140529-nzhxwb84vf2a553c
Diffstat (limited to 'addons/web')
-rw-r--r--addons/web/static/lib/jquery/jquery-1.8.2.js6
1 files changed, 5 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 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 ) {