Commit 86a58d65 authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Always perform a hard refresh on inline preview.

Otherwise Touch will complain that Ext.setup has already been called.
parent 61e3f9b6
Loading
Loading
Loading
Loading
+10 −17
Original line number Diff line number Diff line
@@ -80,12 +80,10 @@ Ext.define('Docs.view.examples.Inline', {

    /**
     * Activates the code preview card.
     * When called for the first time, creates the preview iframe.
     * @param {Function} callback  Called when iframe is ready.
     * @param {Object} scope
     */
    showPreview: function(callback, scope) {
        if (!this.previewInitialized) {
        var iframe = document.getElementById(this.getIframeId());
        // Something is not quite ready when onload fires.
        // I'm unsure what I should wait for. So I'm currently adding just this nasty delay.
@@ -96,11 +94,6 @@ Ext.define('Docs.view.examples.Inline', {
        iframe.src = Docs.touchExamplesUi ? "touchIframe.html" : "extIframe.html";
        this.layout.setActiveItem(1);
        this.previewInitialized = true;
        }
        else {
            this.layout.setActiveItem(1);
            callback.call(scope);
        }
    },

    getHtml: function() {