-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #98 from lbolla/setTimeout
Declare optional parameters according to HTML standard
- Loading branch information
Showing
1 changed file
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4693ff4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@avikchaudhuri, in this case it seems like the original spec is bad, and that by enforcing a subset of it (not having these be optional), we'd be increasing the quality of the code written.
With this change, writing
clearTimeout()
becomes valid, although this is a known no-op, which is very likely not what the author intended (clear all timeouts?).