Skip to main content
Known Participant
October 7, 2020
Question

Javascript branch/ CPM.js

  • October 7, 2020
  • 1 reply
  • 294 views

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

    This topic has been closed for replies.

    1 reply

    TLCMediaDesign
    Inspiring
    October 8, 2020

    What exactly is it that you are actually trying to accomplish? There may be an alternative solution.

    Known Participant
    October 9, 2020

    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