-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ES6: Better support for ES6 class syntax #2329
Comments
…stered` can affect properties used by features (ref #2329)
👍 |
2 similar comments
+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 |
@laco0416 Thanks a lot, that fixed the issue!! |
@laco0416, @JableSoHo: beware of making a |
These requests should be fulfilled now via #2365 |
Confirmed the changes 💯 |
@sjmiles Would it be best then to declare this.properties in the registered function and in the getter just return that? |
@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? |
Ive logged an issue. #2382 |
…stered` can affect properties used by features (ref Polymer#2329)
Is this the right way to register behaviors in es6 ? |
@kevinpschaaf is MartinMoizard@4e1c81d the right order? |
@sjmiles and I talked about this syntax. Can we land this asap before the Summit?
The text was updated successfully, but these errors were encountered: