• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Javascript branch/ CPM.js

Community Beginner ,
Oct 07, 2020 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

167

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
People's Champ ,
Oct 08, 2020 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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Oct 09, 2020 Oct 09, 2020

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Help resources