mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-03-11 08:00:21 +00:00
fix: migrate remaining ECMAScript private fields to TypeScript private (#8495)
Migrates remaining `#field` syntax to `private _field` for Vue reactivity compatibility. ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-8495-fix-migrate-remaining-ECMAScript-private-fields-to-TypeScript-private-2f86d73d365081ec87afe2273c0ff6eb) by [Unito](https://www.unito.io) Co-authored-by: Amp <amp@ampcode.com>
This commit is contained in:
@@ -89,7 +89,7 @@ export class ComfyNodeDefImpl
|
||||
* @internal
|
||||
* Migrate default input options to forceInput.
|
||||
*/
|
||||
static #migrateDefaultInput(nodeDef: ComfyNodeDefV1): ComfyNodeDefV1 {
|
||||
private static _migrateDefaultInput(nodeDef: ComfyNodeDefV1): ComfyNodeDefV1 {
|
||||
const def = _.cloneDeep(nodeDef)
|
||||
def.input ??= {}
|
||||
// For required inputs, now we have the input socket always present. Specifying
|
||||
@@ -118,7 +118,7 @@ export class ComfyNodeDefImpl
|
||||
}
|
||||
|
||||
constructor(def: ComfyNodeDefV1) {
|
||||
const obj = ComfyNodeDefImpl.#migrateDefaultInput(def)
|
||||
const obj = ComfyNodeDefImpl._migrateDefaultInput(def)
|
||||
|
||||
/**
|
||||
* Assign extra fields to `this` for compatibility with group node feature.
|
||||
|
||||
Reference in New Issue
Block a user