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

Hide default value doc when undefined.

parent b18f5bf3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -221,7 +221,7 @@ module JsDuck
    def render_long_doc(m)
      doc = [m[:doc]]

      if m[:default]
      if m[:default] && m[:default] != "undefined"
        doc << "<p>Defaults to: <code>" + CGI.escapeHTML(m[:default]) + "</code></p>"
      end