Re: [FLEXJS] Object.defineProperty

2015-01-30 Thread Alex Harui
Thanks for the links. I believe that the Google Closure Library we use sets up a particular pattern for inheritance. I’m trying to figure out if they have picked a pattern for defineProperty usage. I only see a few references in their code though. When calling base classes using GCL inheritance

Re: [FLEXJS] Object.defineProperty

2015-01-30 Thread Harbs
Actually, this is probably a better link: http://stackoverflow.com/questions/12805777/how-can-i-call-getter-setter-in-a-superclass-from-a-subclass On Jan 30, 2015, at 10:22 AM, Harbs wrote: > There’s a few ways to go about this. None of them straight-forward… > > Here’s a nice write-up: > http:

Re: [FLEXJS] Object.defineProperty

2015-01-30 Thread Harbs
There’s a few ways to go about this. None of them straight-forward… Here’s a nice write-up: http://joshgertzen.com/object-oriented-super-class-method-calling-with-javascript/ Here’s a discussion on Stack Overflow with some simple(ish) methods: http://stackoverflow.com/questions/23077569/javascrip

Re: [FLEXJS] Object.defineProperty

2015-01-29 Thread Alex Harui
I’m starting in on this. I’m unclear how you access the superclass’s getter or setter. Anybody know? ActionScript: function set foo(value:int):void { if (value != super.foo) super.foo = value; } Thanks, -Alex On 1/19/15, 12:49 PM, "Erik de Bruin" wrote: >Actually, JSGoogEmitter.java st

Re: [FLEXJS] Object.defineProperty

2015-01-19 Thread Erik de Bruin
Actually, JSGoogEmitter.java still has code to emit that method, so, "simply" removing the override in FlexJS should get you started ;-) EdB On Mon, Jan 19, 2015 at 8:52 PM, Erik de Bruin wrote: > Definitely! > > Edb > > > > On Monday, January 19, 2015, Alex Harui wrote: >> >> I think we’ve a

Re: [FLEXJS] Object.defineProperty

2015-01-19 Thread Erik de Bruin
Definitely! Edb On Monday, January 19, 2015, Alex Harui wrote: > I think we’ve agreed that IE9 is now the oldest browser that FlexJS will > support in terms of JS output. The original motivation was to get enough > SVG support to do the graphics/skinning. Folks needing to run something > on