generated from obsidianmd/obsidian-sample-plugin
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement Deconstructor Management for Dynamic Class Instances in Cus…
…tomJS (#79) * Add deconstructor handling for dynamic class instances Implemented a mechanism to manage deconstructors in dynamically loaded class instances within CustomJS. This includes registering deconstructors upon class evaluation and ensuring proper cleanup before reloading or discarding classes to avoid duplicate event registration. The list of deconstructors is cleared after execution to maintain clean state. * Added a setting to specify whether the startup scripts should also be re-executed when the scripts are reloaded. Default is NO for compatibility reasons. * The errors thrown by `eslint` have been fixed. * Adjust Prettier EOL handling for better cross-platform compatibility Otherwise you suddenly have 500 errors and only the correct line ends are uploaded to git. * Readme extended with explanations and examples for using the `deconstructor` & re-execute start scripts features.
- Loading branch information
Showing
3 changed files
with
128 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters