Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with introJs().oncomplete(); #956

Closed
asprunger opened this issue Dec 10, 2019 · 3 comments
Closed

Issue with introJs().oncomplete(); #956

asprunger opened this issue Dec 10, 2019 · 3 comments
Labels

Comments

@asprunger
Copy link

Description

Describe one (and only one) issue or enhancement you want to see in Intro.js (before writing any code).
The method oncomplete(); is never throw.

Expected Behavior

What did you expect to happen?
I wanted to have a log in my console

Actual Behavior

What actually happened?
Nothing

Errors and Screenshots (optional)

Give us any additional information if you have.

Example (recommended)

How can someone else see/test this issue? List the steps or write some code; or create a jsfiddle or codepen.
This is what I try to use but it doesn't work.
introJs().oncomplete(function () {
console.log("Fin introJS");
});

Environment (optional)

List browser information, Intro.js version, Operating System, JavaScript libraries (jQuery, Angular, React), etc.

@ScottHuston
Copy link

You can't use the generic constructor to do this without chaining your methods AFAIK. Create an object or chain.

var myIntro = introJs();
myIntro.oncomplete(function() { console.log("Fin introJS");});
myIntro.start();

or

introJs()
   .oncomplete(function() { console.log("Fin introJS");})
   .start();

@psiservices-jreskin
Copy link

I have the same problem... thought I was missing something.

@stale
Copy link

stale bot commented Oct 30, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Oct 30, 2020
@stale stale bot closed this as completed Nov 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants