1 个仓库
Automatically ensuring class methods maintain a permanent reference to their instance.
Distinct from Method Callback Binding: Focuses on general instance-method binding for class design, whereas the candidate focuses on UI event callbacks.
Explore 1 awesome GitHub repository matching user interface & experience · Automatic Method Binding. Refine with filters or upvote what's useful.
core-decorators 是一个 JavaScript 类装饰器库和框架实用程序,用于扩展类功能。它提供了一系列工具,用于实现类行为混入 (mixins)、自动绑定方法以避免手动构造函数配置,以及验证子类方法是否正确覆盖父类方法。 该库包括一个代码弃用工具包,用于通过控制台警告标记过时的方法,以及一个用于测量性能和持续时间的函数执行分析器。它进一步通过自定义装饰器和共享逻辑注入系统,实现了对类和方法行为的修改。 其他功能涵盖对象属性控制,包括强制执行只读属性和限制属性可见性。该工具包还提供性能原语,例如结果缓存和延迟属性初始化,以将执行推迟到首次访问时。
Ensures class methods maintain a permanent reference to the class instance without requiring manual constructor binding.