[FIX] corelib.js: use this instead of self
authorChristophe Simonis <chs@openerp.com>
Tue, 28 May 2013 11:44:00 +0000 (13:44 +0200)
committerChristophe Simonis <chs@openerp.com>
Tue, 28 May 2013 11:44:00 +0000 (13:44 +0200)
bzr revid: chs@openerp.com-20130528114400-jhjmk7hhg60o5871

addons/web/static/src/js/corelib.js

index 1a32a4b..116ddf2 100644 (file)
@@ -1144,7 +1144,7 @@ instance.web.JsonRPC = instance.web.Class.extend(instance.web.PropertiesMixin, {
             }
             qs = '?' + $.param(params);
         }
-        var prefix = _.any(['http://', 'https://', '//'], _.bind(_.str.startsWith, null, path)) ? '' : self.prefix; 
+        var prefix = _.any(['http://', 'https://', '//'], _.bind(_.str.startsWith, null, path)) ? '' : this.prefix; 
         return prefix + path + qs;
     },
 });