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

Correctly skip constructors in search data.

The existing code for skipping constructors had become outdated.
parent c816fec6
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -26,7 +26,7 @@ module JsDuck

        # add all local members, but skip constructors
        cls[:members].each do |m|
          list << member_node(m, cls) unless m[:name] == ClassName.short(cls[:name])
          list << member_node(m, cls) unless constructor?(m)
        end
      end

@@ -42,6 +42,10 @@ module JsDuck

    private

    def constructor?(m)
      m[:tagname] == :method && m[:name] == "constructor"
    end

    def alias_node(key, name, cls)
      return {
        :name => name,