You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@shindig.apache.org by jo...@apache.org on 2011/05/17 02:46:10 UTC
svn commit: r1103965 -
/shindig/trunk/features/src/main/javascript/features/core.config.base/config.js
Author: johnh
Date: Tue May 17 00:46:09 2011
New Revision: 1103965
URL: http://svn.apache.org/viewvc?rev=1103965&view=rev
Log:
Support global config param ___cfg, which if set will be used as configuration for libraries being loaded asynchronously. Without this, incredibly awkward scriptElement.innerText/innerHTML code would be necessary to load &jsload=1-marked JS asynchronously.
Modified:
shindig/trunk/features/src/main/javascript/features/core.config.base/config.js
Modified: shindig/trunk/features/src/main/javascript/features/core.config.base/config.js
URL: http://svn.apache.org/viewvc/shindig/trunk/features/src/main/javascript/features/core.config.base/config.js?rev=1103965&r1=1103964&r2=1103965&view=diff
==============================================================================
--- shindig/trunk/features/src/main/javascript/features/core.config.base/config.js (original)
+++ shindig/trunk/features/src/main/javascript/features/core.config.base/config.js Tue May 17 00:46:09 2011
@@ -152,6 +152,11 @@ gadgets.config = function() {
}
}
foldConfig(baseConfig, configAugment);
+
+ var globalConfig = window['___cfg'];
+ if (globalConfig) {
+ foldConfig(baseConfig, globalConfig);
+ }
}
return {