|
@ -129,9 +129,13 @@ class ScriptAndStyleContext { |
|
|
* @todo implement extStore logic |
|
|
* @todo implement extStore logic |
|
|
* |
|
|
* |
|
|
* @param {string} elementIdentifier The element identifier |
|
|
* @param {string} elementIdentifier The element identifier |
|
|
* @param {map<string, string>} styleRuleMap The Styling rules/values |
|
|
* @param {map<string, string>|Modifier} styleRuleMap The Styling rules/values |
|
|
*/ |
|
|
*/ |
|
|
registerStyling(elementIdentifier, styleRuleMap) { |
|
|
registerStyling(elementIdentifier, styleRuleMap) { |
|
|
|
|
|
if(styleRuleMap instanceof Modifier){ |
|
|
|
|
|
styleRuleMap = styleRuleMap._modifications; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
if (!Object.keys(this.#css).includes(elementIdentifier)) { |
|
|
if (!Object.keys(this.#css).includes(elementIdentifier)) { |
|
|
this.#css[elementIdentifier] = styleRuleMap |
|
|
this.#css[elementIdentifier] = styleRuleMap |
|
|
} |
|
|
} |
|
|