|
1 | 1 | /**
|
2 |
| - * Intro.js v0.2.2 |
| 2 | + * Intro.js v0.3.0 |
3 | 3 | * https://github.com/usablica/intro.js
|
4 | 4 | * MIT licensed
|
5 | 5 | *
|
6 | 6 | * Copyright (C) 2013 usabli.ca - A weekend project by Afshin Mehrabani (@afshinmeh)
|
7 | 7 | */
|
8 | 8 |
|
9 | 9 | (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) { |
22 | 21 | //Default config/variables
|
23 |
| - var VERSION = '0.2.2'; |
| 22 | + var VERSION = '0.3.0'; |
24 | 23 |
|
25 | 24 | /**
|
26 | 25 | * IntroJs main class
|
|
310 | 309 |
|
311 | 310 | helperNumberLayer.innerHTML = targetElement.getAttribute('data-step');
|
312 | 311 | 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>'; |
315 | 314 | helperLayer.appendChild(helperNumberLayer);
|
316 | 315 | tooltipLayer.appendChild(arrowLayer);
|
317 | 316 | helperLayer.appendChild(tooltipLayer);
|
|
573 | 572 | _exitIntro.call(this, this._targetElement);
|
574 | 573 | },
|
575 | 574 | onchange: function(providedCallback) {
|
576 |
| - if (typeof (providedCallback) === "function") { |
| 575 | + if (typeof (providedCallback) === 'function') { |
577 | 576 | this._introChangeCallback = providedCallback;
|
578 | 577 | } 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.'); |
580 | 579 | }
|
581 | 580 | return this;
|
582 | 581 | },
|
|
600 | 599 |
|
601 | 600 | exports.introJs = introJs;
|
602 | 601 | return introJs;
|
603 |
| - |
604 | 602 | }));
|
0 commit comments