Skip to content

Commit 80bf243

Browse files
committed
Fix recursion problem in _clone function, fixes usablica#239
1 parent 04a1580 commit 80bf243

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "intro.js",
3-
"version": "0.7.0",
3+
"version": "0.7.1",
44
"description": "A better way for new feature introduction and step-by-step users guide for your website and project.",
55
"keywords": ["demo", "intro", "introduction"],
66
"homepage": "http://usablica.github.com/intro.js/",

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": "0.7.0",
5+
"version": "0.7.1",
66
"main": "intro.js",
77
"scripts": [
88
"intro.js"

intro.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Intro.js v0.7.0
2+
* Intro.js v0.7.1
33
* https://github.com/usablica/intro.js
44
* MIT licensed
55
*
@@ -19,7 +19,7 @@
1919
}
2020
} (this, function (exports) {
2121
//Default config/variables
22-
var VERSION = '0.7.0';
22+
var VERSION = '0.7.1';
2323

2424
/**
2525
* IntroJs main class
@@ -215,7 +215,7 @@
215215
* @method _cloneObject
216216
*/
217217
function _cloneObject(object) {
218-
if (object == null || typeof (object) != 'object' || object.hasOwnProperty("nodeName") === true) {
218+
if (object == null || typeof (object) != 'object' || object.hasOwnProperty("nodeName") === true || typeof (object.nodeType) != 'undefined') {
219219
return object;
220220
}
221221
var temp = {};
@@ -646,7 +646,7 @@
646646
if (/[0-9]+/.test(zIndex) || opacity < 1) {
647647
parentElm.className += ' introjs-fixParent';
648648
}
649-
649+
650650
parentElm = parentElm.parentNode;
651651
}
652652

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": "0.7.0",
4+
"version": "0.7.1",
55
"author": "Afshin Mehrabani <afshin.meh@gmail.com>",
66
"repository": {
77
"type": "git",

0 commit comments

Comments
 (0)