I think the best solution, 'goog' safe, would be to define the field on the
prototype (with all the proper JSDoc annotations) and then initialize it in
the constructor.

EdB



On Tue, Jun 2, 2015 at 8:42 PM, Alex Harui <aha...@adobe.com> wrote:

> OK, thanks for verifying.  And I think in AS, the array is not shared.
>
> So I think Mike has two choices:
> 1) initialize everything in the constructor
> 2) be smart about what can be initialized in the constructor vs the
> prototype.
>
> I’ll leave it up to Mike to decide.  We can always be smarter later.
>
> -Alex
>
> On 6/2/15, 11:36 AM, "Erik de Bruin" <e...@ixsoftware.nl> wrote:
>
> >> Then all instances share the one array...
> >>>
> >>
> >> That sounds not right. I'll have to do some experimenting to disprove
> >> that, but it just doesn't ring true.
> >>
> >
> >Oh. Well, I guess you learn every day :-) A quick 'JSFiddle' shows that
> >they indeed seem to share the same array :-(
> >
> >No more time to look into this, I'm afraid. But point taken, this needs to
> >be addressed.
> >
> >EdB
> >
> >
> >
> >--
> >Ix Multimedia Software
> >
> >Jan Luykenstraat 27
> >3521 VB Utrecht
> >
> >T. 06-51952295
> >I. www.ixsoftware.nl
>
>


-- 
Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

T. 06-51952295
I. www.ixsoftware.nl

Reply via email to