We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
On http://www.polymer-project.org/polymer.html, it shows
attributeChanged: function(attrName, oldVal, newVal) { //var newVal = this.getAttribute(attrName); console.log(attrName, 'old: ' + oldVal, 'new:', newVal); },
But, the only argument attributeChanged gets is oldVal.
The text was updated successfully, but these errors were encountered:
👍 I confirm that it only passes in the oldValue: http://jsfiddle.net/dannyfritz/HemmZ/1/
Sorry, something went wrong.
This needs to be an issue on docs https://github.com/Polymer/docs/issues.
docs
On Mon, Aug 19, 2013 at 11:46 AM, dannyfritz [email protected]:
[image: 👍] I confirm that it only passes in the oldValue: http://jsfiddle.net/dannyfritz/HemmZ/1/ — Reply to this email directly or view it on GitHubhttps://github.com//issues/242#issuecomment-22894886 .
[image: 👍] I confirm that it only passes in the oldValue: http://jsfiddle.net/dannyfritz/HemmZ/1/
— Reply to this email directly or view it on GitHubhttps://github.com//issues/242#issuecomment-22894886 .
In Canary, with native custom elements enabled, newVal is passed to attributeChanged(). In stable, the arg isn't passed.
newVal
attributeChanged()
Try: http://jsbin.com/uxumeq/2/edit
We should update the polyfills accordingly.
Fixed in googlearchive/CustomElements@8aaf3bc
dfreedm
No branches or pull requests
On http://www.polymer-project.org/polymer.html, it shows
attributeChanged: function(attrName, oldVal, newVal) {
//var newVal = this.getAttribute(attrName);
console.log(attrName, 'old: ' + oldVal, 'new:', newVal);
},
But, the only argument attributeChanged gets is oldVal.
The text was updated successfully, but these errors were encountered: