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

Remove subclasses and mixed_into from toolbar.

parent 45b12799
Loading
Loading
Loading
Loading
+0 −20
Original line number Diff line number Diff line
@@ -71,13 +71,6 @@ Ext.define('Docs.view.cls.Toolbar', {
            }
        }

        if (this.docClass.subclasses.length) {
            this.items.push(this.createClassListButton("Sub Classes", this.docClass.subclasses));
        }
        if (this.docClass.mixedInto.length) {
            this.items.push(this.createClassListButton("Mixed Into", this.docClass.mixedInto));
        }

        this.checkItems = {
            "public": this.createCb("Public", "public"),
            "protected": this.createCb("Protected", "protected"),
@@ -184,19 +177,6 @@ Ext.define('Docs.view.cls.Toolbar', {
        });
    },

    createClassListButton: function(text, classes) {
        var data = Ext.Array.map(classes, function(cls) {
            return this.createLinkRecord(cls);
        }, this);

        return Ext.create('Docs.view.HoverMenuButton', {
            text: text,
            cls: 'icon-subclass',
            showCount: true,
            store: this.createStore(data)
        });
    },

    // creates store tha holds link records
    createStore: function(records) {
        var store = Ext.create('Ext.data.Store', {