This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const AssetLoader = (function AssetLoader(promiseImpl) { | |
| var dependencyConfig, version; | |
| var elementCreator = { | |
| script: function createScriptElement(config) { | |
| var script = document.createElement("script"); | |
| var url = version ? `${config.url}?version=${version}` : config.url; | |
| script.src = url; | |
| script.charset = 'utf-8'; //No I18N | |
| script.id = `DMS${config.id}`; | |
| return script; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * @author navinkumar.c | |
| * @email 1995navinkumar@gmail.com | |
| * @create date 2018-11-01 12:37:56 | |
| * @modify date 2018-11-01 12:37:56 | |
| * @desc [Internationalization with dynamic values support] | |
| */ | |
| var I18N = (function I18N(){ | |
| var entries = {}; | |
| function addEntries(hash) { |