PubSub framework
- Source:
- hooks.js
Methods
-
<static> register(trigger, action)
-
Register a function to execute based on trigger
Parameters:
Name Type Description trigger
string The action that triggers this function, can be 'update', 'refresh', 'themeChange'
action
function The function to execute on trigger
- Source:
- hooks.js
-
<static> trigger(trig)
-
Trigger a hook
Parameters:
Name Type Description trig
string The hook to trigger
- Source:
- hooks.js
-
<static> triggerRefresh()
-
Trigger the 'refresh' functions
- Source:
- hooks.js
-
<static> triggerThemeChange()
-
Trigger the 'themeChange' functions
- Source:
- hooks.js
-
<static> triggerUpdate()
-
Trigger the 'update' functions
- Source:
- hooks.js