Quote:
Originally Posted by Crow
I'm actually doing that too, especially in large blocks of code, to quickly see what important variables the script is using.
|
I'd rather do something like this:
PHP Code:
function onCreated()
{
this.var = 1337;
this.array = {"foo", "bar", "baz" };
// Etc.. then:
// this.importantVar1 - used for foo and bar, in the baz block
// this.importantVar2 - used to determinate the level of foo'nes from baz
// Etc!
}