Skip to content
This repository has been archived by the owner on Feb 17, 2021. It is now read-only.

Commit

Permalink
makes onCTA use callback helpers
Browse files Browse the repository at this point in the history
attempt to fix #36
  • Loading branch information
yeah committed Dec 8, 2013
1 parent 8cda8ae commit bc2af92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/hopscotch-0.1.2.js
Expand Up @@ -826,8 +826,8 @@
winHopscotch.getCalloutManager().removeCallout(step.id);
}
// Call onCTA callback if one is provided
if (step.onCTA && typeof step.onCTA === 'function') {
step.onCTA();
if (step.onCTA) {
utils.invokeCallback(step.onCTA);
}
};

Expand Down

0 comments on commit bc2af92

Please sign in to comment.