Permalink
Browse files

only allow datejs to run once

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.
  • Loading branch information...
1 parent bbf9fab commit e26204358c4e8963454efff82813b184c98f1590 @regality regality committed Jul 28, 2012
Showing with 11 additions and 9 deletions.
  1. +11 −9 lib/date.js
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

0 comments on commit e262043

Please sign in to comment.