Commit 638168c8 authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Make doctests grid loading work in Ext 4.1.

There seems to be no need to need to suspend grid events while doing the
initial loading.
parent c8cab73b
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -62,7 +62,6 @@ Ext.define('Docs.controller.DocTests', {
    locateExamples: function(store) {
        this.clssLeft = Docs.data.doctests.length;
        this.getTestContainer().setDisabled(true);
        store.suspendEvents();
        store.removeAll();
        Ext.each(Docs.data.doctests, function(cls) {
            var task = new Ext.util.DelayedTask(function() {
@@ -108,8 +107,6 @@ Ext.define('Docs.controller.DocTests', {

                this.clssLeft--;
                if (this.clssLeft === 0) {
                    store.resumeEvents();
                    store.fireEvent('datachanged', store, {});
                    this.getTestContainer().setDisabled(false);
                }
            },