Материал из Module developer
It is advisable to place the function in the global script file as you will be able create a lot of instnces on its basis.
It is advisable to place the function in the global script file as you will be able create a lot of instnces on its basis.