diff --git a/iffy.coffee b/iffy.coffee index 92c788a..4210833 100644 --- a/iffy.coffee +++ b/iffy.coffee @@ -311,7 +311,9 @@ class Nev StHtmlNextSection: (gst, wst) -> stSectionNext = $(@dNev).attr("nextsection") if stSectionNext? - gst.Link("Next section", () -> gst.PushSection(gst.story.SectionByName(stSectionNext), wst)) + section = gst.story.SectionByName(stSectionNext) + if section? + gst.Link("Next section", () -> gst.PushSection(section, wst)) StHtmlDisplay: (gst, wst) -> jdivTmp = $("
") for dHTML in $(@dNev).contents()