cssstyle 5.3.3 → 5.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -391,7 +391,7 @@ Object.defineProperties(CSSStyleDeclaration.prototype, {
|
|
|
391
391
|
return;
|
|
392
392
|
}
|
|
393
393
|
let originalText = "";
|
|
394
|
-
if (typeof this._onChange === "function") {
|
|
394
|
+
if (typeof this._onChange === "function" && !this._setInProgress) {
|
|
395
395
|
originalText = this.cssText;
|
|
396
396
|
}
|
|
397
397
|
if (this._values.has(property)) {
|
|
@@ -414,8 +414,8 @@ Object.defineProperties(CSSStyleDeclaration.prototype, {
|
|
|
414
414
|
this._values.set(property, val);
|
|
415
415
|
if (
|
|
416
416
|
typeof this._onChange === "function" &&
|
|
417
|
-
this.
|
|
418
|
-
|
|
417
|
+
!this._setInProgress &&
|
|
418
|
+
this.cssText !== originalText
|
|
419
419
|
) {
|
|
420
420
|
this._onChange(this.cssText);
|
|
421
421
|
}
|