PureMVC Architects Lounge

PureMVC Manifold => Multicore Version => Topic started by: normc on December 18, 2012, 09:54:39



Title: Set value of proxy's instance var to that of the same proxy's static var
Post by: normc on December 18, 2012, 09:54:39
I'd like set the value of a proxy's instance variable to that of a static member of same class e.g.:
//JavaScript Port

instance_var: {
      prop_name: this.constructor.STATIC_VAR},

As shown, I'm building an object that will have more props...that's why I'm doing it this way.
But the "prop_name" value is undefined when queried later.
Is there a way to do this?

Thanks
NormC


Title: Re: Set value of proxy's instance var to that of the same proxy's static var
Post by: puremvc on December 20, 2012, 08:10:39
I'm going to move this to the appropriate board. Don't have an answer at the moment, but it'll be more likely that someone who does will see it...

-=Cliff>