Commit 247ca564 authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Fix crash in #to_html of @deprected tag.

parent 05c47584
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -23,7 +23,8 @@ module JsDuck::Builtins
    end

    def to_html(context)
      v = context[:deprecated][:version] ? "since " + context[:deprecated][:version] : ""
      depr = context[:deprecated]
      v = depr[:version] ? "since " + depr[:version] : ""
      <<-EOHTML
        <div class='signature-box deprecated'>
        <p>This #{context[:tagname]} has been <strong>deprecated</strong> #{v}</p>