From a73bf56d39003115695c0ce51955cb1fea3045e0 Mon Sep 17 00:00:00 2001 From: Minas Keshishyan Date: Mon, 3 Feb 2020 15:52:15 +0400 Subject: [PATCH] improve comments --- src/nodes/html.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nodes/html.ts b/src/nodes/html.ts index 9374a4f..9c2edac 100644 --- a/src/nodes/html.ts +++ b/src/nodes/html.ts @@ -471,11 +471,11 @@ export default class HTMLElement extends Node { * @param {Attributes} attributes the new attribute set */ setAttributes(attributes: Attributes) { - // Update the this.attributes + // Invalidate current this.attributes if (this._attrs) { delete this._attrs; } - // Update the raw attributes map + // Invalidate current this.rawAttributes if (this._rawAttrs) { delete this._rawAttrs; }