Ticket #150 (closed Defect: worksforme)

Opened 13 years ago

Last modified 12 years ago

"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


if the url for requesting webclient initalization is a "topic-level permalink"

Change History

comment:1 Changed 13 years ago by jri

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.

comment:2 Changed 13 years ago by jri

Hi Malte!
Do you need any further support on this issue?

comment:3 Changed 12 years ago by jri

  • Status changed from new to closed
  • Resolution set to worksforme
Note: See TracTickets for help on using tickets.