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

Ignore @extends Object.

Everything extends Object anyway, but pulling the methods of Object
into every other class just pollutes the docs with too much info.
parent 07f13150
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -264,7 +264,9 @@ module JsDuck

    def detect_extends(doc_map, code)
      if doc_map[:extends]
        doc_map[:extends].first[:extends]
        cls = doc_map[:extends].first[:extends]
        # Ignore extending of the Object class
        cls == "Object" ? nil : cls
      elsif code[:type] == :assignment && code[:right] && code[:right][:type] == :ext_extend
        code[:right][:extend].join(".")
      elsif code[:type] == :ext_define