Skip to content
Snippets Groups Projects
Commit ab90dfd6 authored by Romain Estievenart's avatar Romain Estievenart
Browse files

[FIX] portal: Remove non compliant ES5 syntax


Currently Odoo JavaScript code base support only ecmascript <= 5

So using a non compliant ES5 syntax can trigger a javascript engines
crash for some browsers like: IE, webview used by some old mobile
devices.

This commit fixes non compliant JS code syntax found to avoid potential
crash.

closes odoo/odoo#31522

Signed-off-by: default avatarVincentSchippefilt <VincentSchippefilt@users.noreply.github.com>
parent 9950c38e
No related branches found
No related tags found
No related merge requests found
......@@ -102,7 +102,7 @@ var PortalChatter = Widget.extend({
route: '/mail/chatter_init',
params: this._messageFetchPrepareParams()
}),
this._super.apply(this, arguments),
this._super.apply(this, arguments)
).then(function(result){
self.result = result;
self.options = _.extend(self.options, self.result['options'] || {});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment