[Pkg-javascript-commits] [dojo] 58/149: Nls bundles lacking _localized property are not improved while preloading anymore. Previously the code was setting _localized to {}, lying about the absence of better bundles. Fixes #18556.

David Prévot taffit at moszumanska.debian.org
Sat Feb 27 03:13:47 UTC 2016


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository dojo.

commit 1f3d67686aa8d6b0164ac46f6a07cf65208f9af0
Author: Clément Mathieu <clement.mathieu at outlook.com>
Date:   Fri Apr 17 16:50:23 2015 +0200

    Nls bundles lacking _localized property are not improved while preloading anymore. Previously the code was setting _localized to {}, lying about the absence of better bundles. Fixes #18556.
---
 i18n.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/i18n.js b/i18n.js
index d522296..aa3fdbb 100644
--- a/i18n.js
+++ b/i18n.js
@@ -374,7 +374,7 @@ define(["./_base/kernel", "require", "./has", "./_base/array", "./_base/config",
 											bundlePath = match[1] + "/";
 
 										// backcompat
-										bundle._localized = bundle._localized || {};
+										if(!bundle._localized){continue;}
 
 										var localized;
 										if(loc === "ROOT"){

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/dojo.git



More information about the Pkg-javascript-commits mailing list