>
> 1. It doesn't look like you have private fields implemented to be emitted
> in the constructor? private fileds are going to the prototype. For
> instance;
>
> private var explicitWidth:Number = NaN;
>
> to
>
> /**
> * @private
> * @type {number}
> */
> this.explicitWidth_ = NaN;
>
> Is this something that needs to happen, UIBase is what I am testing.
>

I think having the declaration on the prototype instead of in the
constructor keep the JS closer to the AS, make the inheritance of the JS
class a bit more robust (?) and certainly makes the job of the Closure
Compiler easier, as the coding conventions for 'goog' dictate the
declaration of all fields on the prototype.

EdB



-- 
Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

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

Reply via email to