Loading template/app/controller/DocTests.js +2 −5 Original line number Diff line number Diff line Loading @@ -6,22 +6,19 @@ Ext.define('Docs.controller.DocTests', { baseUrl: "#!/doctests", /** * @cfg * Regex used to locate all <pre> nodes. * Regex used to locate all `pre` nodes. * @private */ preRegex: /<pre[\s\S]*?>[\s\S]*?<\/pre[\s\S]*?>/gi, /** * @cfg * Regex used to determine if a node is an inline example. * @private */ preClsRegex: /class=[\s\S]*?inline-example/i, /** * @cfg * Regex used to locate <code> node. * Regex used to locate `code` node. * @private */ codeRegex: /<code[\s\S]*?>[\s\S]+?<\/code[\s\S]*?>/gi, Loading template/app/view/Header.js +6 −1 Original line number Diff line number Diff line /** * Renders the title of the docs app (extracted from "header-content" div). * * When `Docs.otherProducts` is defined, also renders the menu with * links to these other products. */ Ext.define('Docs.view.Header', { extend: 'Ext.container.Container', alias: 'widget.docheader', Loading @@ -5,7 +11,6 @@ Ext.define('Docs.view.Header', { contentEl: 'header-content', initComponent: function() { if (Docs.otherProducts) { this.style = 'cursor: pointer;', this.cls = 'dropdown'; Loading template/app/view/examples/InlinePreview.js +5 −0 Original line number Diff line number Diff line Loading @@ -12,6 +12,7 @@ Ext.define('Docs.view.examples.InlinePreview', { statics: { /** * @private * @static */ iframeId: 0, Loading @@ -20,6 +21,7 @@ Ext.define('Docs.view.examples.InlinePreview', { * * @return {String} iframeId * @private * @static */ getNextIframeId: function() { this.iframeId++; Loading @@ -32,6 +34,7 @@ Ext.define('Docs.view.examples.InlinePreview', { * @param {String} iframeId * @return {Ext.Component} * @private * @static */ getPreviewByIframeId: function(iframeId) { return Ext.ComponentManager.get('inline-preview-' + iframeId.toString()); Loading @@ -41,6 +44,7 @@ Ext.define('Docs.view.examples.InlinePreview', { * Called when an preview has been successfully executed. * * @param {String} iframeId * @static */ previewSuccess: function(iframeId) { var preview = this.getPreviewByIframeId(iframeId); Loading @@ -52,6 +56,7 @@ Ext.define('Docs.view.examples.InlinePreview', { * * @param {String} iframeId * @param {Error} e * @static */ previewFailure: function(iframeId, e) { var preview = this.getPreviewByIframeId(iframeId); Loading Loading
template/app/controller/DocTests.js +2 −5 Original line number Diff line number Diff line Loading @@ -6,22 +6,19 @@ Ext.define('Docs.controller.DocTests', { baseUrl: "#!/doctests", /** * @cfg * Regex used to locate all <pre> nodes. * Regex used to locate all `pre` nodes. * @private */ preRegex: /<pre[\s\S]*?>[\s\S]*?<\/pre[\s\S]*?>/gi, /** * @cfg * Regex used to determine if a node is an inline example. * @private */ preClsRegex: /class=[\s\S]*?inline-example/i, /** * @cfg * Regex used to locate <code> node. * Regex used to locate `code` node. * @private */ codeRegex: /<code[\s\S]*?>[\s\S]+?<\/code[\s\S]*?>/gi, Loading
template/app/view/Header.js +6 −1 Original line number Diff line number Diff line /** * Renders the title of the docs app (extracted from "header-content" div). * * When `Docs.otherProducts` is defined, also renders the menu with * links to these other products. */ Ext.define('Docs.view.Header', { extend: 'Ext.container.Container', alias: 'widget.docheader', Loading @@ -5,7 +11,6 @@ Ext.define('Docs.view.Header', { contentEl: 'header-content', initComponent: function() { if (Docs.otherProducts) { this.style = 'cursor: pointer;', this.cls = 'dropdown'; Loading
template/app/view/examples/InlinePreview.js +5 −0 Original line number Diff line number Diff line Loading @@ -12,6 +12,7 @@ Ext.define('Docs.view.examples.InlinePreview', { statics: { /** * @private * @static */ iframeId: 0, Loading @@ -20,6 +21,7 @@ Ext.define('Docs.view.examples.InlinePreview', { * * @return {String} iframeId * @private * @static */ getNextIframeId: function() { this.iframeId++; Loading @@ -32,6 +34,7 @@ Ext.define('Docs.view.examples.InlinePreview', { * @param {String} iframeId * @return {Ext.Component} * @private * @static */ getPreviewByIframeId: function(iframeId) { return Ext.ComponentManager.get('inline-preview-' + iframeId.toString()); Loading @@ -41,6 +44,7 @@ Ext.define('Docs.view.examples.InlinePreview', { * Called when an preview has been successfully executed. * * @param {String} iframeId * @static */ previewSuccess: function(iframeId) { var preview = this.getPreviewByIframeId(iframeId); Loading @@ -52,6 +56,7 @@ Ext.define('Docs.view.examples.InlinePreview', { * * @param {String} iframeId * @param {Error} e * @static */ previewFailure: function(iframeId, e) { var preview = this.getPreviewByIframeId(iframeId); Loading