Tags: saml-dev/obsidian-custom-js
Tags
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.
PreviousNext