Ticket #150 (closed Defect: worksforme)
"post_select_topic"-hook of plugin.js is called before "init"-hook of plugin.js
Reported by: | Malte | Owned by: | |
---|---|---|---|
Priority: | Major | Milestone: | |
Component: | DeepaMehta Standard Distribution | Version: | 4.0.6 |
Keywords: | Cc: | ||
Complexity: | 3 | Area: | GUI |
Module: | deepamehta-webclient |
Description
if the url for requesting webclient initalization is a "topic-level permalink"
Change History
Note: See
TracTickets for help on using
tickets.
Yes, in the case you describe the post_select_topic() hook is triggered through the Topicmaps plugin. It is that plugin's init() code that displays the initial topicmap and selects the initial topic. And: the order in which the plugins are init'ed is not deterministic.
(For the moment) there is no contract that prohibits to trigger post_select_topic() before init().
If your plugin's post_select_topic hook depends on your init() code: try to put your init() code direct in the plugin's constructor (outside any hook). Then it is executed before any plugin is init'ed.