Commit 528c6386 authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Display all types of aliases in class header.

Also allow more then one dot (".") in the name of an alias.
parent dfaff58e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -330,7 +330,7 @@ module JsDuck
          end
        end
        (code[:alias] || []).each do |a|
          if a =~ /^(\w+)\.(\w+)$/
          if a =~ /^([\w.]+)\.(\w+)$/
            if xtypes[$1]
              xtypes[$1] << $2
            else
+3 −5
Original line number Diff line number Diff line
@@ -33,16 +33,14 @@ Ext.define('Docs.view.cls.Header', {
                    }
                },
                renderXTypes: function(xtypes) {
                    var map = {
                    var titles = {
                        widget: "xtype",
                        plugin: "ptype",
                        feature: "ftype"
                    };
                    var r = [];
                    xtypes && Ext.Object.each(map, function(ns, title) {
                        if (xtypes[ns]) {
                            r.push(title + ": " + xtypes[ns].join(", "));
                        }
                    xtypes && Ext.Object.each(xtypes, function(ns, types) {
                        r.push((titles[ns] || ns) + ": " + types.join(", "));
                    });

                    if (r.length > 0) {