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

Commit

Permalink
add check for duplicate callout id
Browse files Browse the repository at this point in the history
  • Loading branch information
Gordon Koo committed Nov 19, 2012
1 parent 5765f75 commit 3955216
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 11 deletions.
3 changes: 3 additions & 0 deletions js/hopscotch-0.0.4.js
Expand Up @@ -986,6 +986,9 @@
var callout;

if (opt.id) {
if (callouts[opt.id]) {
throw "Callout by that id already exists. Please choose a unique id.";
}
opt.isTourBubble = false;
callout = new HopscotchBubble(opt);
callouts[opt.id] = callout;
Expand Down
22 changes: 11 additions & 11 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 3955216

Please sign in to comment.