Skip to content

Commit

Permalink
don't need id !== undefined, just id !== null
Browse files Browse the repository at this point in the history
Thanks Mathias.
  • Loading branch information
sideshowbarker committed Aug 12, 2011
1 parent 6f88147 commit 7f43c56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion anno.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Copy link
@mathiasbynens

This comment has been minimized.

Copy link
@sideshowbarker

sideshowbarker via email Aug 12, 2011

Author Contributor

This comment has been minimized.

Copy link
@mathiasbynens

mathiasbynens Aug 12, 2011

Contributor

No worries, sorry for the confusion!

element = document.getElementById(id);
tocElement = document.getElementById(id + "-toc");
for (i = 0; i < annos[id].length; i = i + 1) {
Expand Down

0 comments on commit 7f43c56

Please sign in to comment.