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

implement native toggleAttribute signature #5370

Merged
merged 2 commits into from
Oct 8, 2018

Conversation

43081j
Copy link
Contributor

@43081j 43081j commented Oct 8, 2018

Fixes #5364.

As long as we return bool, we implement the same interface that was natively introduced recently. While keeping our third parameter..

Copy link
Contributor

@TimvdLippe TimvdLippe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@43081j
Copy link
Contributor Author

43081j commented Oct 8, 2018

No worries, tried it locally on a project too and it resolves the problem 👍

@@ -817,7 +817,7 @@ export const LegacyElementMixin = dedupingMixin((base) => {
* @param {boolean=} bool Boolean to force the attribute on or off.
* When unspecified, the state of the attribute will be reversed.
* @param {Element=} node Node to target. Defaults to `this`.
* @return {void}
* @return {boolean}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/home/travis/build/Polymer/polymer/lib/legacy/legacy-element-mixin.js
  813:5  error  Missing JSDoc return description  valid-jsdoc

@TimvdLippe TimvdLippe merged commit ce85eb9 into Polymer:master Oct 8, 2018
@43081j 43081j deleted the toggleattr branch October 8, 2018 11:24
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.

3 participants