Skip to content

Commit 12c3913

Browse files
author
Steven Orvell
committed
Add doc comment
1 parent fa5570b commit 12c3913

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

lib/legacy/class.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,9 +303,17 @@ function GenerateClassFromInfo(info, Base, behaviors) {
303303
}
304304
}
305305

306-
__attributeReaction(name, oldValue, value) {
306+
/**
307+
* Processes an attribute reaction when the `legacyNoObservedAttributes`
308+
* setting is in use.
309+
* @param {string} name Name of attribute that changed
310+
* @param {?string} old Old attribute value
311+
* @param {?string} value New attribute value
312+
* @return {void}
313+
*/
314+
__attributeReaction(name, old, value) {
307315
if ((this.__dataAttributes && this.__dataAttributes[name]) || name === DISABLED_ATTR) {
308-
this.attributeChangedCallback(name, oldValue, value);
316+
this.attributeChangedCallback(name, old, value);
309317
}
310318
}
311319

0 commit comments

Comments
 (0)