Javascript branch/ CPM.js

New Here ,
Oct 07, 2020

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

Views

64

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Adobe Community Professional ,
Oct 08, 2020

Copy link to clipboard

Copied

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

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
jorgenf50250910 AUTHOR LATEST
New Here ,
Oct 09, 2020

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

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more