Commit 63ba658a authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Removed unneeded docClass config option.

We don't really need it at initialization time in ClassPanel and
OverviewPanel - it's only needed in load() method to which it's
already supplied.
parent ae7f596a
Loading
Loading
Loading
Loading
+1 −9
Original line number Diff line number Diff line
@@ -7,12 +7,6 @@ Ext.define('Docs.ClassPanel', {
    style: 'border-color: #bfbfbf;',
    plain: true,

    /**
     * @cfg {Object} docClass
     * Documentation for a class.
     */
    docClass: {},

    // Remember tab scroll position on Webkit
    listeners: {
        beforetabchange: function(tabPanel, newCard, oldCard) {
@@ -30,9 +24,7 @@ Ext.define('Docs.ClassPanel', {

    initComponent: function() {
        this.height = Ext.get('docContent').getHeight() - 55;
        this.items = Ext.create('Docs.OverviewPanel', {
          docClass: this.docClass
        });
        this.items = Ext.create('Docs.OverviewPanel');
        this.callParent(arguments);
    }
});
+0 −6
Original line number Diff line number Diff line
@@ -6,12 +6,6 @@ Ext.define('Docs.OverviewPanel', {
    title: 'Overview',
    autoScroll: true,

    /**
     * @cfg {Object} docClass
     * Documentation for a class.
     */
    docClass: {},

    scrollToEl: function(query) {
        var el = Ext.get(Ext.query(query)[0]);
        if (el) {
+1 −3
Original line number Diff line number Diff line
@@ -60,9 +60,7 @@ var showClass = function(cls, anchor) {
    var docTabPanel = Ext.getCmp('docTabPanel');
    if (!docTabPanel) {
         Ext.get('docContent').update('');
         Ext.create('Docs.ClassPanel', {
           docClass: cls
         });
         Ext.create('Docs.ClassPanel');
    }

    Ext.get('docTabPanel').show();