-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
don't need id !== undefined, just id !== null
Thanks Mathias.
- Loading branch information
1 parent
6f88147
commit 7f43c56
Showing
1 changed file
with
1 addition
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -124,7 +124,7 @@ function annoShow(event) { | |
function annotateHeadings(baseUrl, marker, className, annos) { | ||
var element, hyperlink, i, id, space, tocAnno, tocSpace, tocElement; | ||
for (id in annos) { | ||
if (id !== null && id !== undefined) { | ||
if (id !== null) { | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
sideshowbarker
via email
Author
Contributor
|
||
element = document.getElementById(id); | ||
tocElement = document.getElementById(id + "-toc"); | ||
for (i = 0; i < annos[id].length; i = i + 1) { | ||
|
See c4de549#commitcomment-528382