Permalink
Browse files

presenter view: fix advancing of incremental bullet slides

There are some global state variables that aren't correctly getting
initialized in the presenter view. Since I'm on a tight time budget at
the moment, just hackily forward the state from the presentation view
to the presenter view, which fixes the defect.
  • Loading branch information...
1 parent d8c7afd commit af715dbc926a785412380b05e876754b913e4ac6 @durin42 durin42 committed Mar 2, 2012
Showing with 7 additions and 0 deletions.
  1. +5 −0 public/js/presenter.js
  2. +2 −0 public/js/showoff.js
View
@@ -35,6 +35,11 @@ function presPrevStep()
function presNextStep()
{
+ // TODO: figure out why these two lines are
+ // necessary. Something in the presenter view isn't correctly
+ // setting these variabls related to incremental slide display.
+ incrCurr = w.incrCurr
+ incrSteps = w.incrSteps
nextStep()
w.nextStep()
postSlide()
View
@@ -228,6 +228,8 @@ function showSlide(back_step) {
if ('presenterView' in window) {
var pv = window.presenterView;
pv.slidenum = slidenum;
+ pv.incrCurr = incrCurr
+ pv.incrSteps = incrSteps
pv.showSlide(true);
pv.postSlide();
}

0 comments on commit af715db

Please sign in to comment.