Skip to content

Commit

Permalink
Rename configClass -> configClassMap.
Browse files Browse the repository at this point in the history
  • Loading branch information
danfuzz committed Dec 9, 2024
1 parent 0b220f9 commit 53dfb67
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/compy/export/BaseComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -441,15 +441,15 @@ export class BaseComponent {
*
* @type {Map<function(new:BaseComponent), function(new:BaseConfig)>}
*/
static #configClass = new Map();
static #configClassMap = new Map();

/**
* @returns {function(new:BaseConfig, object)} The expected configuration
* class. for this class. Subclasses should not override this; instead they
* should override {@link #_impl_configClass}.
*/
static get CONFIG_CLASS() {
const already = BaseComponent.#configClass.get(this);
const already = BaseComponent.#configClassMap.get(this);

if (already) {
return already;
Expand All @@ -468,7 +468,7 @@ export class BaseComponent {
result = superCls.CONFIG_CLASS;
}

BaseComponent.#configClass.set(this, result);
BaseComponent.#configClassMap.set(this, result);
return result;
}

Expand Down

0 comments on commit 53dfb67

Please sign in to comment.