Commit 7cb16bfb authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Fix icon in class header for singleton components.

Previously when singleton happened to be component, the component icon
was shown.
parent ad7d8b37
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -33,12 +33,12 @@ Ext.define('Docs.view.cls.Header', {
            '</tpl>',
            {
                getClass: function(cls) {
                    if (cls.component) {
                        return "component";
                    }
                    else if (cls.singleton) {
                    if (cls.singleton) {
                        return "singleton";
                    }
                    else if (cls.component) {
                        return "component";
                    }
                    else {
                        return "class";
                    }