From 38e1a8a66013adc0a2baf7cb8097789a82507bd3 Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Mon, 28 Nov 2011 16:39:41 +0100 Subject: [PATCH] [FIX] according to spec, Array.prototype.sort is not defined as returning anything, Opera implements it strictly bzr revid: xmo@openerp.com-20111128153941-xox35xedo9v2du2d --- addons/web/static/src/js/core.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/web/static/src/js/core.js b/addons/web/static/src/js/core.js index 8eeca33934f..c9255d31949 100644 --- a/addons/web/static/src/js/core.js +++ b/addons/web/static/src/js/core.js @@ -1029,7 +1029,8 @@ openerp.web.TranslationDataBase = openerp.web.Class.extend(/** @lends openerp.we set_bundle: function(translation_bundle) { var self = this; this.db = {}; - var modules = _.keys(translation_bundle.modules).sort(); + var modules = _.keys(translation_bundle.modules); + modules.sort(); if (_.include(modules, "web")) { modules = ["web"].concat(_.without(modules, "web")); }