I have a function onChangeBrand()
in A.js and there is a same name in B.js.
So how to avoid this situation? There is a constraint - I can't change the function names. and i am not allowed to edit both the Js files so namespace is not a right idea for me.
Can we call something like A.onChangeBrand()
or B.onChangeBrand()
?