
Loading…
ES6: Better support for ES6 class syntax #2329
![]()
+1
When I declare properties in my ES6 class as shown above it works fine, but when I add an observer to a property the observer function does not fire. I have a jsbin that illustrates this:
@JableSoHo i think this.properties is a mistake. properties should be static like as get is().
@laco0416, @JableSoHo: beware of making a properties getter that returns an inline object. Polymer uses this.properties more than once, and the getter as written will return a new object every time.
Confirmed the changes
@JableSoHo. See my syntax in #2329 (comment)
@ebidel I used your syntax which works. Except now neon-animations, and dialog buttons throw an exception. This is the exception :
Uncaught TypeError: Illegal constructorPolymer.NeonAnimationRunnerBehaviorImpl._configureAnimationEffects @ neon-animation-runner-behavior.html:44Polymer.NeonAnimationRunnerBehaviorImpl.playAnimation @ neon-animation-runner-behavior.html:81Polymer._renderOpened @ iron-dropdown.html:288(anonymous function) @ iron-overlay-behavior.html:255Polymer.Async._atEndOfMicrotask @ async.html:50
Also: I am on the master branches for polymer and all the components. Is this fine?
Can you file a bug over on that repo along with the codes snippet you're using to register the element?
@kevinpschaaf is MartinMoizard@4e1c81d the right order?
@sjmiles and I talked about this syntax. Can we land this asap before the Summit?