file
wrapper.jsAseCachingWrapper
Caching wrapper for ASE classes
AseCachingWrapper class
- class AseCachingWrapper
-
…
__add__
(
prop, defaultvalue, callback)
- Add property to cache
__del__
(
prop, callback)
- Remove property caching request
__cleanup__
()
- Remove all references
Constants
finalization_cleanup_registry
- FinalizationRegistry to call cleanup callback upon object destruction.
Functions
wrap_ase_object
(
aseobj, fields, callback)
- Wrap AseObject to cache properties and support add, cleanup and auto cleanup.
define_reactive
(
object, properties_object)
-
Define reactive properties on
object
, to be used with reactive_wrapper(). See also Object.defineProperties. reactive_wrapper
(
effect, notifier, keepwatching)
-
Make
effect()
wrapper to watch reactive properties, on changes runnotifier()
.