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

Remove calls to CodeMirror.refresh().

Looks like the upgraded CodeMirror handles itself much better and
so many forced refreshes aren't no more needed.
parent 73dd4deb
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -26,7 +26,6 @@ Ext.define('Docs.controller.InlineExamples', {
            Ext.Array.each(Ext.ComponentQuery.query(container + ' .inlineexample'), function(c) {
                if (c.editor && c.isVisible()) {
                    c.doLayout();
                    c.editor.refresh();
                }
            });
        };
+0 −3
Original line number Diff line number Diff line
@@ -137,9 +137,6 @@ Ext.define('Docs.view.examples.Inline', {
        if (this.toolbar) {
            this.toolbar.activateButton("code");
        }
        // Weird bug on CodeMirror requires 2 refreshes...
        this.editor.refresh();
        this.editor.refresh();
    },

    /**