mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-03-17 05:47:34 +08:00
Make elements default constructible, testing wip
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
/**
|
||||
* @typedef {new (...args) => IElement} ElementConstructor
|
||||
* @typedef {import("./IElement").default} IElement
|
||||
* @typedef {new (...args) => IElement} ElementConstructor
|
||||
*/
|
||||
|
||||
export default class ElementFactory {
|
||||
@@ -16,9 +16,7 @@ export default class ElementFactory {
|
||||
ElementFactory.#elementConstructors.set(tagName, entityConstructor)
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {String} tagName
|
||||
*/
|
||||
/** @param {String} tagName */
|
||||
static getConstructor(tagName) {
|
||||
return ElementFactory.#elementConstructors.get(tagName)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user