Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought

Over 10 years of community discussion and knowledge are maintained here as a read-only archive.

New discussions should be taken up in issues on the appropriate projects at https://github.com/PureMVC

Pages: [1]
Author Topic: Set value of proxy's instance var to that of the same proxy's static var  (Read 4129 times)
Posts: 5

View Profile Email
« 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?

Global Moderator
Hero Member
Posts: 2871

View Profile WWW Email
« Reply #1 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...

Pages: [1]