Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

intro.js overrides? #1048

Closed
ivanbacher opened this issue May 9, 2017 · 1 comment
Closed

intro.js overrides? #1048

ivanbacher opened this issue May 9, 2017 · 1 comment

Comments

@ivanbacher
Copy link
Contributor

Hi,

I am trying to load intro.js using jspm:

From terminal:
jspm install introJs=npm:intro.js

From code file:
import introJs from 'introJs';
import 'introJs/minified/introjs.min.css!css';

console.log(introJs) //see image for output

screen shot 2017-05-09 at 16 17 22

This is incorrect as introJs should have a start method.

IntroJs

(function (root, factory) {
  if (typeof exports === 'object') {
    // CommonJS
    factory(exports);
  } else if (typeof define === 'function' && define.amd) {
    // AMD. Register as an anonymous module.
    define(['exports'], factory);
  } else {
    // Browser globals
    factory(root);
  }
} (this, function (exports) {
   
  ...
  ...

  exports.introJs = introJs;
  return introJs;
}));
@ivanbacher
Copy link
Contributor Author

Nevermind! Got it working: import {introJs} from 'introJs';

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant