Commit a2ec9e16 authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Hide "Fires" section when empty :fires array.

When ever a method-call is detected inside a method, this results
in :fires field being created with possibly zero elements in it -
but the #to_html of Tag::Fires didn't account for it.

Fixes #428
parent f412ee94
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -42,6 +42,8 @@ module JsDuck::Tag
    end

    def to_html(m)
      return unless m[:fires] && m[:fires].length > 0

      return [
        "<h3 class='pa'>Fires</h3>",
        "<ul>",