Skip to content

Commit 02cc429

Browse files
committed
* Fix of a bug to introduced when attempting to close tip with X
1 parent 3232436 commit 02cc429

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ng-walkthrough",
3-
"version": "0.3.2",
3+
"version": "0.3.3",
44
"homepage": "https://github.com/souly1/ng-walkthrough",
55
"authors": [
66
"Ophir Stern <souly01@gmail.com>"

ng-walkthrough.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,10 @@ angular.module('ng-walkthrough', [])
107107
}
108108
};
109109

110-
var attemptTouchEvent = function(){
110+
var attemptTouchEvent = function(e){
111111
if (scope.clickEvent == 'touch' && canTouch) { //We need this in case both angular an ionic are for some reason loaded
112112
if ((!scope.useButton) ||
113-
($event.currentTarget.className.indexOf(DOM_WALKTHROUGH_DONE_BUTTON_CLASS) > -1)) {
113+
(e.currentTarget.className.indexOf(DOM_WALKTHROUGH_DONE_BUTTON_CLASS) > -1)) {
114114
scope.closeWalkthrough();
115115
canTouch = false;
116116
$timeout(function(){
@@ -179,13 +179,13 @@ angular.module('ng-walkthrough', [])
179179
scope.closeWalkthrough();
180180
}
181181
} else { //We need this in case both angular an ionic are for some reason loaded
182-
attemptTouchEvent(scope);
182+
attemptTouchEvent($event);
183183
}
184184
};
185185

186186
scope.onCloseTouched = function($event) {
187187
$event.stopPropagation();
188-
attemptTouchEvent(scope);
188+
attemptTouchEvent($event);
189189
};
190190

191191
scope.closeIcon = iconsUrl + "Hotspot-close.png";

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ng-walkthrough",
3-
"version": "0.3.2",
3+
"version": "0.3.3",
44
"homepage": "https://github.com/souly1/ng-walkthrough",
55
"authors": [
66
"Ophir Stern <souly01@gmail.com>"

0 commit comments

Comments
 (0)