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

Commit

Permalink
add onClose for callouts
Browse files Browse the repository at this point in the history
  • Loading branch information
Gordon Koo committed Nov 21, 2012
1 parent 51966a9 commit 89f87e2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
3 changes: 3 additions & 0 deletions js/hopscotch-0.0.4.js
Expand Up @@ -517,6 +517,9 @@
* @private
*/
this.closeFn = function(evt) {
if (self.opt.onClose) {
self.opt.onClose();
}
if (self.opt.id && !self.opt.isTourBubble) {
// Remove via the HopscotchCalloutManager.
// removeCallout() calls HopscotchBubble.destroy internally.
Expand Down
12 changes: 6 additions & 6 deletions js/hopscotch-0.0.4.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 89f87e2

Please sign in to comment.