Skip to content
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

Fix for loosing prototype's property value during getter/setter initialization #2258

Closed
wants to merge 2 commits into from

Conversation

nazar-pc
Copy link
Contributor

Basically prototype's value was overridden with accessor.
Check added - if instance value doesn't exist - use value from prototype, just like it work during regular prototype inheritance.
Fixes #2257 (partially)

nazar-pc added a commit to nazar-pc/CleverStyle-Framework that referenced this pull request Aug 13, 2015
…w DOM, not Shady DOM!), rest of things are broken currently.

Polymer includes patches that are proposed upstream:
* Polymer/polymer#2205
* Polymer/polymer#2247
* Polymer/polymer#2258
nazar-pc added a commit to nazar-pc/CleverStyle-Framework that referenced this pull request Aug 15, 2015
nazar-pc added a commit to nazar-pc/CleverStyle-Framework that referenced this pull request Aug 17, 2015
nazar-pc added a commit to nazar-pc/CleverStyle-Framework that referenced this pull request Aug 20, 2015
@tjsavage
Copy link
Contributor

Adding @kevinpschaaf to match corresponding issue

@nazar-pc
Copy link
Contributor Author

nazar-pc commented Oct 8, 2015

With master code causes errors, something changed withing Polymer:(

@sorvell
Copy link
Contributor

sorvell commented Feb 3, 2016

Sorry for the delay and thanks for the effort here. The supported way to define default values for properties is via the value field for a property in the properties object. After review, we've decided not to support 2 ways to do this. If you like this feature, it's something that could possibly be implemented via a behavior.

@sorvell sorvell closed this Feb 3, 2016
@nazar-pc nazar-pc deleted the fix-for-2257 branch June 30, 2016 05:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants