From 12c39131f60d9abf9d88b63dab94d0a170551065 Mon Sep 17 00:00:00 2001 From: Steven Orvell Date: Tue, 7 Jan 2020 10:41:58 -0800 Subject: [PATCH] Add doc comment --- lib/legacy/class.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/lib/legacy/class.js b/lib/legacy/class.js index 967e635445..23a52a198a 100644 --- a/lib/legacy/class.js +++ b/lib/legacy/class.js @@ -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); } }