Skip to content

Commit 319f1bd

Browse files
committed
A little changes + coding styles
1 parent 6c641c9 commit 319f1bd

File tree

1 file changed

+17
-19
lines changed

1 file changed

+17
-19
lines changed

intro.js

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,25 @@
11
/**
2-
* Intro.js v0.2.2
2+
* Intro.js v0.3.0
33
* https://github.com/usablica/intro.js
44
* MIT licensed
55
*
66
* Copyright (C) 2013 usabli.ca - A weekend project by Afshin Mehrabani (@afshinmeh)
77
*/
88

99
(function (root, factory) {
10-
if (typeof exports === 'object') {
11-
// CommonJS
12-
factory(exports);
13-
} else if (typeof define === 'function' && define.amd) {
14-
// AMD. Register as an anonymous module.
15-
define(['exports'], factory);
16-
} else {
17-
// Browser globals
18-
factory(root);
19-
}
20-
}(this, function (exports) {
21-
10+
if (typeof exports === 'object') {
11+
// CommonJS
12+
factory(exports);
13+
} else if (typeof define === 'function' && define.amd) {
14+
// AMD. Register as an anonymous module.
15+
define(['exports'], factory);
16+
} else {
17+
// Browser globals
18+
factory(root);
19+
}
20+
} (this, function (exports) {
2221
//Default config/variables
23-
var VERSION = '0.2.2';
22+
var VERSION = '0.3.0';
2423

2524
/**
2625
* IntroJs main class
@@ -310,8 +309,8 @@
310309

311310
helperNumberLayer.innerHTML = targetElement.getAttribute('data-step');
312311
tooltipLayer.innerHTML = '<div class="introjs-tooltiptext">' +
313-
targetElement.getAttribute('data-intro') +
314-
'</div><div class="introjs-tooltipbuttons"></div>';
312+
targetElement.getAttribute('data-intro') +
313+
'</div><div class="introjs-tooltipbuttons"></div>';
315314
helperLayer.appendChild(helperNumberLayer);
316315
tooltipLayer.appendChild(arrowLayer);
317316
helperLayer.appendChild(tooltipLayer);
@@ -573,10 +572,10 @@
573572
_exitIntro.call(this, this._targetElement);
574573
},
575574
onchange: function(providedCallback) {
576-
if (typeof (providedCallback) === "function") {
575+
if (typeof (providedCallback) === 'function') {
577576
this._introChangeCallback = providedCallback;
578577
} else {
579-
throw new Error("Provided callback for onchange was not a function.");
578+
throw new Error('Provided callback for onchange was not a function.');
580579
}
581580
return this;
582581
},
@@ -600,5 +599,4 @@
600599

601600
exports.introJs = introJs;
602601
return introJs;
603-
604602
}));

0 commit comments

Comments
 (0)