Skip to content

Commit b58342f

Browse files
author
bozdoz
committed
v2.9.1 - resolves usablica#846
1 parent 8414449 commit b58342f

File tree

8 files changed

+18
-12
lines changed

8 files changed

+18
-12
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Intro.js v2.9.0
1+
# Intro.js v2.9.1
22

33
[![Build Status](https://travis-ci.org/usablica/intro.js.svg?branch=master)](https://travis-ci.org/usablica/intro.js)
44

changelog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
## Release History
22

3+
* **v2.9.1** - 2018-04-24
4+
- hotfix to removing events from removed DOM elements
5+
36
* **v2.9.0** - 2018-04-23
47
- Added @bozdoz as Author
58
- Fixed scroll positions when parent element is scrollable

component.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "intro.js",
33
"repo": "usablica/intro.js",
44
"description": "Better introductions for websites and features with a step-by-step guide for your projects",
5-
"version": "2.9.0",
5+
"version": "2.9.1",
66
"main": "intro.js",
77
"scripts": [
88
"intro.js"

intro.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Intro.js v2.9.0
2+
* Intro.js v2.9.1
33
* https://github.com/usablica/intro.js
44
*
55
* Copyright (C) 2017 Afshin Mehrabani (@afshinmeh)
@@ -32,7 +32,7 @@
3232
}
3333
})(function () {
3434
//Default config/variables
35-
var VERSION = '2.9.0';
35+
var VERSION = '2.9.1';
3636

3737
/**
3838
* IntroJs main class
@@ -1597,6 +1597,10 @@
15971597
var id = this._id.apply(this, arguments),
15981598
handler = obj[events_key] && obj[events_key][id];
15991599

1600+
if (!handler) {
1601+
return;
1602+
}
1603+
16001604
if ('removeEventListener' in obj) {
16011605
obj.removeEventListener(type, handler, useCapture);
16021606
} else if ('detachEvent' in obj) {

minified/intro.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "intro.js",
33
"description": "Better introductions for websites and features with a step-by-step guide for your projects",
4-
"version": "2.9.0",
4+
"version": "2.9.1",
55
"author": "Afshin Mehrabani <[email protected]>",
66
"homepage": "http://introjs.com",
77
"repository": {

release.sh

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@
44
# Script for releasing new versions
55
# Handles version updating and publishing to:
66
# - GitHub
7-
#
8-
# TODO:
9-
# - Publish to npm
10-
# - Publish to bower
7+
# - NPM
118
#
129

1310
# check package version
@@ -45,4 +42,6 @@ else
4542
fi
4643

4744
git push --tags -f
48-
git push
45+
git push
46+
47+
npm publish

0 commit comments

Comments
 (0)