Magento 2 – Two scripts have method with same name, how to call one specific of them
Situation The method “test” does exist two times. If I call it while both scripts are required, then only the last one is getting called e.g. the one from test2.js app/code/Company/Test/view/frontend/web/js/test1.js function test() { alert(“test 1”); } function foo() {… Read More »Magento 2 – Two scripts have method with same name, how to call one specific of them