improve comments

This commit is contained in:
Minas Keshishyan 2020-02-03 15:52:15 +04:00
parent cb219a0d3a
commit a73bf56d39

View file

@ -471,11 +471,11 @@ export default class HTMLElement extends Node {
* @param {Attributes} attributes the new attribute set * @param {Attributes} attributes the new attribute set
*/ */
setAttributes(attributes: Attributes) { setAttributes(attributes: Attributes) {
// Update the this.attributes // Invalidate current this.attributes
if (this._attrs) { if (this._attrs) {
delete this._attrs; delete this._attrs;
} }
// Update the raw attributes map // Invalidate current this.rawAttributes
if (this._rawAttrs) { if (this._rawAttrs) {
delete this._rawAttrs; delete this._rawAttrs;
} }