flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Harui <aha...@adobe.com>
Subject Re: [FalconJX] order of static members
Date Mon, 18 Jul 2016 06:34:06 GMT


On 7/17/16, 11:25 PM, "Harbs" <harbs.lists@gmail.com> 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 = [];
}

Mime
View raw message