Skip to content

Commit 370ae5e

Browse files
committed
Add method / parameter descriptions.
1 parent c8715b5 commit 370ae5e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

lib/legacy/legacy-element-mixin.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,10 @@ export const LegacyElementMixin = dedupingMixin((base) => {
144144
}
145145

146146
/**
147+
* Sets the value of an attribute.
147148
* @override
148-
* @param {string} name
149-
* @param {string} value
149+
* @param {string} name The name of the attribute to change.
150+
* @param {string} value The new attribute value.
150151
*/
151152
setAttribute(name, value) {
152153
if (legacyNoObservedAttributes && !this._legacyForceObservedAttributes) {
@@ -160,8 +161,9 @@ export const LegacyElementMixin = dedupingMixin((base) => {
160161
}
161162

162163
/**
164+
* Removes an attribute.
163165
* @override
164-
* @param {string} name
166+
* @param {string} name The name of the attribute to remove.
165167
*/
166168
removeAttribute(name) {
167169
if (legacyNoObservedAttributes && !this._legacyForceObservedAttributes) {

0 commit comments

Comments
 (0)