On 7/17/16, 11:25 PM, "Harbs" <[email protected]> wrote:
>I’m also not sure how the prototype is being setup.
>
>It could be you’ve already solved my concerns there, but it looks like a
>lot of the prototype is being setup outside the constructor.
Scalar prototype initializers are set on the prototype property:
Source:
Class A {
Var foo:int = 10;
}
Generates:
A.prototype.foo = 10;
Complex prototype initializers are set in the constructor.
Source:
Class A {
Var foo:Array = [];
}
Generates:
Function A()
{
foo = [];
}