Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by dungeonmaster

I still couldn't wrap my head over module system that impact uses.

So I have this function:
MyLib.SquareSum = function(a,b) {
	return (a*a+b*b);
}

I want to call this function anywhere within my code just like Math.Min for example.

Where and how should I put it without breaking baking and so on?

1 decade ago by Mitja

http://snook.ca/archives/javascript/global_variable
Page 1 of 1
« first « previous next › last »