Mindmap with markmap.js

Bug is not corrected.

Document Explorer or Task Explorer in panel rhs.
When page saved:

editor:pageSaved => update(false) => update=function(mode)
[(not mode) = true] + [isVisible() = true if MindMap is in panel] ==> false
=> hide => editor.hidePanel(current_panel_id) ==> panel rhs hided

I would like to make an additional comment:
Wouldn't it be better to plug in event.listen only once MindMap is loaded in the panel? It is illogical to listen to this event continuously when MindMap will only be used episodically.