Loading template/app/view/examples/Inline.js +10 −17 Original line number Diff line number Diff line Loading @@ -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. Loading @@ -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() { Loading Loading
template/app/view/examples/Inline.js +10 −17 Original line number Diff line number Diff line Loading @@ -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. Loading @@ -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() { Loading