Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: 可否增加一个监听事件 #227

Open
SCFY233 opened this issue Feb 4, 2025 · 2 comments
Open

[Feature]: 可否增加一个监听事件 #227

SCFY233 opened this issue Feb 4, 2025 · 2 comments
Labels
enhancement New feature or request

Comments

@SCFY233
Copy link

SCFY233 commented Feb 4, 2025

Is your feature request related to a problem? Please describe.

给脚本系统增加一个onUnload,以便在卸载时调用插件提供的函数,比如清除定时器什么的
要不然不好搞aaa

Describe the solution you'd like

同上

Describe alternatives you've considered

No response

Additional context

No response

@SCFY233 SCFY233 added the enhancement New feature or request label Feb 4, 2025
@ShrBox
Copy link
Member

ShrBox commented Feb 5, 2025

当年设计的时候没考虑到导致的,我到时候加个onLoad(function)的API吧

@SCFY233
Copy link
Author

SCFY233 commented Feb 5, 2025

主要是如果循环遍历的时候插件突然被卸载,那么会导致空指针崩服

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants