Comfy-Org / Comfy-Org/ComfyUI_frontend

[DevTask] Remove "extend prototype" feature of LiteGraphGlobal.registerNodeType

Open
#4,741 0 comments 0 reactions 0 assignees View on GitHub
area:litegraph developer experience
Dominant language
TypeScript
Stars
2k
Forks
699
Avg merge
1d 7h
Merged PRs (30d)
490

Description

Remove code from `registerNodeType` that adds prototype properties to the provided class:

```ts
base_class.prototype[i] ||= LGraphNode.prototype[i]
```

┆Issue is synchronized with this [Notion page](https://www.notion.so/Issue-4741-DevTask-Remove-extend-prototype-feature-of-LiteGraphGlobal-registerNodeType-2476d73d36508194a2d9c46b110c82b6) by [Unito](https://www.unito.io)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.