i have load 2 javascript files same company. these javascript files different , contain different functions, use same namespace (the company's name). have both files included in php file , when try create object specified in 1 of external js in internal js code searches object in other js file error saying function not exist. when comment out other external file include, code works. how force internal js function in specific external js file?
can alias other function variable?
e.g:
<script src='functions1.js'></script> <script> var function1 = mycompany.somefunction </script> <script src='functions2.js'></script> <script> var function2 = mycompany.somefunction </script>
Comments
Post a Comment