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
deprecate then remove *Changed listeners #16993
Comments
Removed Type-Defect label. |
also - if for some reason we want to keep the feature (compat with polymer.js), then we could be more careful about fooChanged and only doing something special if there is a correspoing observable property named foo. I also lean towards removing the feature. |
As a user of the feature, I can attest that it's always seemed "too magical" to me. It's seemed to be in a stark contrast with the explicitness of, say, @CustomTag('my-element') class MyElement. So yes, making it more explicit would be more user-friendly and less error-prone. |
Removed Area-Polymer label. |
Removed Library-Polymer label. |
Added this to the 1.6 milestone. |
Removed this from the 1.6 milestone. |
Removed Polymer-P-1 label. |
Added PolymerMilestone-Next label. |
Removed Polymer-Milestone-Next label. |
@jakemac53 is this fixed in new polymer? |
Yes in the new polymer these methods will no longer exist |
Closing this because I will forget later |
This issue has been moved to dart-archive/polymer-dart#120. |
"Changed" is a magic method suffix:
http://www.polymer-project.org/docs/polymer/polymer.html#change-watchers
it's happened quite a few times that people get errors because of this feature... they expect to use *Changed as an event listener and not have it be magic.
I think we should remove this feature from the Dart port, as it is largely replaced by another feature that is more explicit and IMHO more obvious (@ObserveProperty -- currently in our under development 0.10.0-dev pkg, inspired by this polymer.js feature: http://www.polymer-project.org/docs/polymer/polymer.html#observeblock), and fits the polymer.dart pattern of using metadata for things recognized by the base class.
The text was updated successfully, but these errors were encountered: