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

Commit

Permalink
Release v0.2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
timlindvall committed Jul 1, 2016
1 parent 6f6b0f7 commit dc747f0
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 12 deletions.
Binary file added archives/hopscotch-0.2.6.tar.gz
Binary file not shown.
Binary file added archives/hopscotch-0.2.6.zip
Binary file not shown.
4 changes: 2 additions & 2 deletions dist/css/hopscotch.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**! hopscotch - v0.2.5
/**! hopscotch - v0.2.6
*
* Copyright 2015 LinkedIn Corp. All rights reserved.
* Copyright 2016 LinkedIn Corp. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
4 changes: 2 additions & 2 deletions dist/css/hopscotch.min.css

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

13 changes: 9 additions & 4 deletions dist/js/hopscotch.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**! hopscotch - v0.2.5
/**! hopscotch - v0.2.6
*
* Copyright 2015 LinkedIn Corp. All rights reserved.
* Copyright 2016 LinkedIn Corp. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -744,6 +744,7 @@
totalStepsI18n,
nextBtnText,
isLast,
i,
opts;

// Cache current step information.
Expand Down Expand Up @@ -1958,8 +1959,12 @@
* @returns {Object} Hopscotch
*/
this.showStep = function(stepNum) {
var step = currTour.steps[stepNum];
var step = currTour.steps[stepNum],
prevStepNum = currStepNum;
if(!utils.getStepTarget(step)) {
currStepNum = stepNum;
utils.invokeEventCallbacks('error');
currStepNum = prevStepNum;
return;
}

Expand Down Expand Up @@ -2142,7 +2147,7 @@
len;

for (i = 0, len = evtCallbacks.length; i < len; ++i) {
if (evtCallbacks[i] === cb) {
if (evtCallbacks[i].cb === cb) {
evtCallbacks.splice(i, 1);
}
}
Expand Down
6 changes: 3 additions & 3 deletions dist/js/hopscotch.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hopscotch",
"version": "0.2.5",
"version": "0.2.6",
"description": "A framework to make it easy for developers to add product tours to their pages.",
"main": "dist/js/hopscotch.min.js",
"directories": {
Expand Down

0 comments on commit dc747f0

Please sign in to comment.