[Pkg-javascript-commits] [dojo] 11/58: 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
Thu Mar 24 04:28:24 UTC 2016


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

taffit pushed a commit to annotated tag 1.10.5
in repository dojo.

commit bbfc150779d19bba7df68c9437d886f0eee6de8f
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 552b0f1..57a7f1c 100644
--- a/i18n.js
+++ b/i18n.js
@@ -378,7 +378,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