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

Only allow datejs to run once #10

Merged
merged 1 commit into from
Jul 30, 2012
Merged

Only allow datejs to run once #10

merged 1 commit into from
Jul 30, 2012

Conversation

regality
Copy link
Contributor

If datejs runs twice, then it executes the following twice:

Date.prototype._toString = Date.prototype.toString

This can cause terrifying recursion that you will end up spending half a day debugging it. Only to realize the solution you spent hours implementing was incorrect and spend the rest of the day debugging.

If you could fix and publish to npm, that would just tickle me silly.

http://i.imgur.com/lFnRA.gif

if datejs runs twice, then it executes the following twice

    Date.prototype._toString = Date.prototype.toString

This can cause terrifying recursion that you will end up spending a full
day debugging.
chrisdew added a commit that referenced this pull request Jul 30, 2012
Only allow datejs to run once
@chrisdew chrisdew merged commit 620b64a into chrisdew:master Jul 30, 2012
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