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

Commit

Permalink
Merge pull request #27 from gnatok/get_current_target
Browse files Browse the repository at this point in the history
add getCurrTarget function that returns current target object
  • Loading branch information
Gordon Koo committed Sep 16, 2013
2 parents 70b2974 + 3fcdfdd commit fb865c8
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion js/hopscotch-0.1.1.js
Original file line number Diff line number Diff line change
Expand Up @@ -1987,6 +1987,15 @@
return currTour;
};

/**
* getCurrTarget
*
* @return {Object} The currently visible target.
*/
this.getCurrTarget = function() {
return utils.getStepTarget(getCurrStep());
};

/**
* getCurrStepNum
*
Expand Down Expand Up @@ -2044,7 +2053,7 @@
* to hopscotch.configure or hopscotch.listen will not be removed). If
* evtName is null or undefined, callbacks for all events will be removed.
*
* @param {string} evtName Optional Event name for which we should remove callbacks
* @param {string} evtName Optional Event name for which we should remove callbacks
* @param {boolean} tourOnly Optional flag to indicate we should only remove callbacks added
* by a tour. Defaults to false.
* @returns {Object} Hopscotch
Expand Down

0 comments on commit fb865c8

Please sign in to comment.