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

Cannot read property 'type' of undefined #7

Closed
j8 opened this issue Sep 5, 2014 · 4 comments
Closed

Cannot read property 'type' of undefined #7

j8 opened this issue Sep 5, 2014 · 4 comments
Assignees
Labels

Comments

@j8
Copy link
Contributor

j8 commented Sep 5, 2014

I have already using bootstrap popover in other part of the system, and initially, when I launch joyride on the first joyride item, I have 'previous' button. So when clicking on it I got:

Cannot read property 'type' of undefined at: if (previousStep.type === "location_change") {

This is the actual function:

function goToPrev() {
                    steps[currentStepCount].cleanUp();

                    var previousStep = steps[currentStepCount - 1];
                    if (previousStep.type === "location_change") {

I'm using Angular UI router also.

@abhikmitra
Copy link
Owner

So your first step is location change right ?

@j8
Copy link
Contributor Author

j8 commented Sep 5, 2014

For some reason yes, I removed any other popovers in the system, and still the first step is location change and it should be disabled 'previous' button

@j8
Copy link
Contributor Author

j8 commented Sep 5, 2014

So actually I found that this issue rises, if you want your first item to be element, instead of title.

@abhikmitra
Copy link
Owner

Yes you are right. Will fix this, in the coming weekend.

@abhikmitra abhikmitra self-assigned this Sep 5, 2014
@abhikmitra abhikmitra added the bug label Sep 5, 2014
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

2 participants