API Docs for: 1.0.0
Show:

LinkableWatcher Class

This is used to dynamically attach a set of callbacks to different targets. The callbacks of the LinkableWatcher will be triggered automatically when the target triggers callbacks, changes, becomes null or is disposed. Instead of calling this constructor directly, consider using one of the SessionManager functions registerLinkableChild or registerDisposableChild to make sure the watcher will get disposed automatically.

Constructor

LinkableWatcher

(
  • typeRestriction
  • immediateCallback
  • groupedCallback
)

Parameters:

  • typeRestriction Class

    Optionally restricts which type of targets this watcher accepts.

  • immediateCallback Function

    A function to add as an immediate callback.

  • groupedCallback Function

    A function to add as a grouped callback.

Item Index

Properties

Properties

CLASS_NAME

String public static

TO-DO:temporary solution to save the CLASS_NAME constructor.name works for window object , but modular based won't work

CLASS_NAME

String public static

TO-DO:temporary solution to save the CLASS_NAME constructor.name works for window object , but modular based won't work

NS

String public static

temporary solution to save the namespace for this class/prototype

Default: weavecore

NS

String public static

temporary solution to save the namespace for this class/prototype

Default: weavecore

SESSIONABLE

String public static

TO-DO:temporary solution for checking class in sessionable

SESSIONABLE

String public static

TO-DO:temporary solution for checking class in sessionable