Commit 4aac6dee authored by Thomas Aylott's avatar Thomas Aylott
Browse files

FIXED issue with sending the 'get_member' message to a nil relation

parent a4920016
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -27,12 +27,17 @@ module JsDuck
    # If the original also happens to be an alias, continue recursively.
    def find_original(al)
      al_def = al[:alias]
      orig = @relations[al_def[:cls]].get_member(al_def[:member], al_def[:type] || al[:tagname])
      
      orig = @relations[al_def[:cls]]
      return al if not orig
      orig = orig.get_member(al_def[:member], al_def[:type] || al[:tagname])
      
      if orig[:alias]
        find_original(orig)
      else
        orig
      end
      
    end
  end