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

gh-68 Fixed bug with id creation based on time. #69

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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.

@@ -276,7 +276,7 @@
<button class="tab-delete btn"><i class="icon-trash"></i> Remove</button>';


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