Add hook for artifact details being updated

This commit is contained in:
Ssergni Smith
2015-10-15 15:06:14 -07:00
parent 99e6cc57ef
commit b00bb17748
2 changed files with 5 additions and 1 deletions

View File

@ -52,10 +52,12 @@
// this only selects the current chat pane; on mobile, it
// also switches between map, info and other panes defined
// by plugins
// artifactsUpdated: called when the set of artifacts (including targets)
// has changed. Parameters names are old, new.
window._hooks = {}
window.VALID_HOOKS = [
'portalSelected', 'portalDetailsUpdated',
'portalSelected', 'portalDetailsUpdated', 'artifactsUpdated',
'mapDataRefreshStart', 'mapDataEntityInject', 'mapDataRefreshEnd',
'portalAdded', 'linkAdded', 'fieldAdded',
'publicChatDataAvailable', 'factionChatDataAvailable',