Skip to content
This repository was archived by the owner on Feb 17, 2021. It is now read-only.

Tour ID as part of classes #153

Merged
merged 4 commits into from
Apr 22, 2015
Merged

Conversation

timlindvall
Copy link
Contributor

Append tour class to HopscotchBubble, if tour. Also move RegEx check for tour id in startTour().

Resolves issue #123.

// loadTour if we are calling startTour directly. (When we call startTour
// from window onLoad handler, we'll use currTour)
if (!currTour) {

// Check validity of tour ID. If invalid, throw an error.
if(!tour.id || !validIdRegEx.test(tour.id)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's add a sanity check for tour.

@timlindvall timlindvall modified the milestone: 0.2.4 Apr 21, 2015
@kate2753
Copy link
Contributor

This looks good to me. I'll wait for the Travis build to complete and pull this in.

@kate2753
Copy link
Contributor

Looks like Travis build failed because code coverage dropped below 80%. Could you add a unit test to cover new functionality?

@kate2753
Copy link
Contributor

Looks good!

kate2753 added a commit that referenced this pull request Apr 22, 2015
Tour ID as part of classes
@kate2753 kate2753 merged commit a364890 into LinkedInAttic:master Apr 22, 2015
@timlindvall timlindvall deleted the className branch April 23, 2015 00:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants