Skip to content

Commit

Permalink
Add method / parameter descriptions.
Browse files Browse the repository at this point in the history
  • Loading branch information
bicknellr committed Apr 28, 2020
1 parent c8715b5 commit 370ae5e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/legacy/legacy-element-mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,10 @@ export const LegacyElementMixin = dedupingMixin((base) => {
}

/**
* Sets the value of an attribute.
* @override
* @param {string} name
* @param {string} value
* @param {string} name The name of the attribute to change.
* @param {string} value The new attribute value.
*/
setAttribute(name, value) {
if (legacyNoObservedAttributes && !this._legacyForceObservedAttributes) {
Expand All @@ -160,8 +161,9 @@ export const LegacyElementMixin = dedupingMixin((base) => {
}

/**
* Removes an attribute.
* @override
* @param {string} name
* @param {string} name The name of the attribute to remove.
*/
removeAttribute(name) {
if (legacyNoObservedAttributes && !this._legacyForceObservedAttributes) {
Expand Down

0 comments on commit 370ae5e

Please sign in to comment.