Skip to content

Conversation

@No3x
Copy link
Contributor

@No3x No3x commented Jun 28, 2016

event.timeStamp contains fractions of a second. A dot in the html id attribute caused problems. => Replaced with guid function.



var id = 'bs_tab' + e.timeStamp;
var id = 'bs_tab' + guid();
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggestion to add an underscore after 'bs_tab' for the id. So, var id = 'bs_tab_' + guid();

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I just replaced e.timeStamp and did not think about this. Thank you.

Added underscore as suggested by @emRae.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants