Commit 4d7b890d authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Add classes to history when tree nodes clicked.

I didn't know that an additional event options object gets passed
to each event handler.
parent 01985937
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -28,7 +28,14 @@ Ext.define('Docs.controller.Classes', {

        this.control({
            '#treePanelCmp': {
                classclick: Ext.Function.bind(this.loadClass, this)
                // Can't simply assign the loadClass function as event
                // handler, because an extra event options object is
                // appended to the event arguments, which we don't
                // want to give to the loadClass, as this would render
                // the noHistory parameter to true.
                classclick: function(cls) {
                    this.loadClass(cls);
                }
            },

            '#classlist': {