Skip to content

Commit

Permalink
Add doc comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Orvell committed Jan 7, 2020
1 parent fa5570b commit 12c3913
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions lib/legacy/class.js
Original file line number Diff line number Diff line change
Expand Up @@ -303,9 +303,17 @@ function GenerateClassFromInfo(info, Base, behaviors) {
}
}

__attributeReaction(name, oldValue, value) {
/**
* Processes an attribute reaction when the `legacyNoObservedAttributes`
* setting is in use.
* @param {string} name Name of attribute that changed
* @param {?string} old Old attribute value
* @param {?string} value New attribute value
* @return {void}
*/
__attributeReaction(name, old, value) {
if ((this.__dataAttributes && this.__dataAttributes[name]) || name === DISABLED_ATTR) {
this.attributeChangedCallback(name, oldValue, value);
this.attributeChangedCallback(name, old, value);
}
}

Expand Down

0 comments on commit 12c3913

Please sign in to comment.