Skip to content

Commit

Permalink
Fix recursion problem in _clone function, fixes usablica#239
Browse files Browse the repository at this point in the history
  • Loading branch information
afshinm committed Mar 11, 2014
1 parent 04a1580 commit 80bf243
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "intro.js",
"version": "0.7.0",
"version": "0.7.1",
"description": "A better way for new feature introduction and step-by-step users guide for your website and project.",
"keywords": ["demo", "intro", "introduction"],
"homepage": "http://usablica.github.com/intro.js/",
Expand Down
2 changes: 1 addition & 1 deletion component.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "intro.js",
"repo": "usablica/intro.js",
"description": "Better introductions for websites and features with a step-by-step guide for your projects",
"version": "0.7.0",
"version": "0.7.1",
"main": "intro.js",
"scripts": [
"intro.js"
Expand Down
8 changes: 4 additions & 4 deletions intro.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Intro.js v0.7.0
* Intro.js v0.7.1
* https://github.com/usablica/intro.js
* MIT licensed
*
Expand All @@ -19,7 +19,7 @@
}
} (this, function (exports) {
//Default config/variables
var VERSION = '0.7.0';
var VERSION = '0.7.1';

/**
* IntroJs main class
Expand Down Expand Up @@ -215,7 +215,7 @@
* @method _cloneObject
*/
function _cloneObject(object) {
if (object == null || typeof (object) != 'object' || object.hasOwnProperty("nodeName") === true) {
if (object == null || typeof (object) != 'object' || object.hasOwnProperty("nodeName") === true || typeof (object.nodeType) != 'undefined') {
return object;
}
var temp = {};
Expand Down Expand Up @@ -646,7 +646,7 @@
if (/[0-9]+/.test(zIndex) || opacity < 1) {
parentElm.className += ' introjs-fixParent';
}
parentElm = parentElm.parentNode;
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Intro.js",
"description": "Better introductions for websites and features with a step-by-step guide for your projects",
"version": "0.7.0",
"version": "0.7.1",
"author": "Afshin Mehrabani <[email protected]>",
"repository": {
"type": "git",
Expand Down

0 comments on commit 80bf243

Please sign in to comment.