Okay, so you're basically saying that there's really no need to duplicate the function itself, and by sticking with just using "self" for variables, it would have the same effect, with less memory usage.
Do I have this right?
If so, one question. If you only create one instance of a class, and use:
self.Foo=function()
how many copies of that function are created? Would it just be one, or would there be two? This isn't some kind of justification either - I'm just curious how it would work. Obviously conserving memory should be a priority.
Of course, that does bring into question why Turbine chooses to do events eg:
Foo.MouseClick = function (sender,args)
with the dot operator instead of the colon.
|