[FIX] according to spec, Array.prototype.sort is not defined as returning anything, Opera implements it strictly

bzr revid: xmo@openerp.com-20111128153941-xox35xedo9v2du2d
This commit is contained in:
Xavier Morel 2011-11-28 16:39:41 +01:00
parent 2b9c52ee8b
commit 38e1a8a660
1 changed files with 2 additions and 1 deletions

View File

@ -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"));
}