AnsweredAssumed Answered

JS functions names collision

Question asked by kovler61 on Mar 28, 2019
Latest reply on Mar 28, 2019 by odoe

I'm trying to use  ArcGIS JavaScript map component on the same page with Jodit WYSIWYG HTML editor. Both components use obfuscated JavaScript code. The problem is that the obfuscated code of both components uses the same replacements for functions names, which leads to collision. For example, both codes contain a top level function named "O". As the result, a call to the function leads to a wrong code (it depends on the order of loading of JavaScript files). On my opinion, the problem could be solved by using namespaces in your source JavaScript files.