@brightspace-ui/core
Advanced tools
Comparing version 1.8.2 to 1.8.3
@@ -36,2 +36,3 @@ import { | ||
}; | ||
this.__updatedProperties = new Map(); | ||
@@ -48,11 +49,21 @@ } | ||
removeListener(this.__languageChangeCallback); | ||
this.__updatedProperties.clear(); | ||
} | ||
shouldUpdate() { | ||
shouldUpdate(changedProperties) { | ||
const ready = this.__language !== undefined | ||
&& this.__resources !== undefined; | ||
if (!ready) { | ||
changedProperties.forEach((oldValue, propName) => { | ||
this.__updatedProperties.set(propName, oldValue); | ||
}); | ||
return false; | ||
} | ||
return super.shouldUpdate(); | ||
this.__updatedProperties.forEach((oldValue, propName) => { | ||
if (!changedProperties.has(propName)) { | ||
changedProperties.set(propName, oldValue); | ||
} | ||
}); | ||
this.__updatedProperties.clear(); | ||
return super.shouldUpdate(changedProperties); | ||
} | ||
@@ -59,0 +70,0 @@ |
{ | ||
"name": "@brightspace-ui/core", | ||
"version": "1.8.2", | ||
"version": "1.8.3", | ||
"description": "A collection of accessible, free, open-source web components for building Brightspace applications", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/BrightspaceUI/core.git", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
958944
7757