Copy link to clipboard
Copied
I'm trying to call getCurrentBranch that is defined in CPM.js from Captivate:
g.SlideGraphManager.prototype = { getCurrentBranch: function () { return this.m_CurrentBranch; }, }
I guess it's related to this property
(function (g) { g.SlideGraphManager = function () { this.m_CurrentBranch = []; }; )
I can console log the SlideGraphManager function with cp.SlideGraphManager but no idea how to call getCurrentBranch or access m_CurrentBranch. Any pointers much appreciated!! J
Copy link to clipboard
Copied
What exactly is it that you are actually trying to accomplish? There may be an alternative solution.
Copy link to clipboard
Copied
Hi, I would like to jump to a branch with Javascript instead of using the built in functionality.
I'm also doing wrapping my head around what I can and cannot do so trying to understand CPM.js better. I cannot understand why I cant call cp.SlideGraphManager.getCurrentBranch(); as the function getCurrentBranch is a property of slideGraphManager right? Is the syntax wrong or what am I missing?
Thanks Jorgen