Loading template/app/controller/Classes.js +6 −0 Original line number Diff line number Diff line Loading @@ -135,6 +135,12 @@ Ext.define('Docs.controller.Classes', { delegate: '.x-resizable-handle' }); } }, 'doctabs': { tabClose: function(url) { this.getOverview().eraseScrollContext(url); } } }); }, Loading template/app/controller/Guides.js +5 −0 Original line number Diff line number Diff line Loading @@ -57,6 +57,11 @@ Ext.define('Docs.controller.Guides', { delegate: '.guide' }); } }, 'doctabs': { tabClose: function(url) { this.getGuide().eraseScrollContext(url); } } }); }, Loading template/app/controller/Tabs.js +0 −3 Original line number Diff line number Diff line Loading @@ -94,9 +94,6 @@ Ext.define('Docs.controller.Tabs', { this.control({ '[componentCls=doctabs]': { tabClose: function(url) { // delete this.scrollState[url]; }, tabActivate: function(url, opts) { Docs.History.push(url, opts); }, Loading template/app/view/Scrolling.js +9 −0 Original line number Diff line number Diff line Loading @@ -30,6 +30,15 @@ Ext.define('Docs.view.Scrolling', { this.scrollContext = ctx; }, /** * Erases data about the given scrolling context. * * @param {String} ctx A name for the context. */ eraseScrollContext: function(ctx) { delete this.scrollState[ctx]; }, /** * Saves the scroll state in current context. * Loading Loading
template/app/controller/Classes.js +6 −0 Original line number Diff line number Diff line Loading @@ -135,6 +135,12 @@ Ext.define('Docs.controller.Classes', { delegate: '.x-resizable-handle' }); } }, 'doctabs': { tabClose: function(url) { this.getOverview().eraseScrollContext(url); } } }); }, Loading
template/app/controller/Guides.js +5 −0 Original line number Diff line number Diff line Loading @@ -57,6 +57,11 @@ Ext.define('Docs.controller.Guides', { delegate: '.guide' }); } }, 'doctabs': { tabClose: function(url) { this.getGuide().eraseScrollContext(url); } } }); }, Loading
template/app/controller/Tabs.js +0 −3 Original line number Diff line number Diff line Loading @@ -94,9 +94,6 @@ Ext.define('Docs.controller.Tabs', { this.control({ '[componentCls=doctabs]': { tabClose: function(url) { // delete this.scrollState[url]; }, tabActivate: function(url, opts) { Docs.History.push(url, opts); }, Loading
template/app/view/Scrolling.js +9 −0 Original line number Diff line number Diff line Loading @@ -30,6 +30,15 @@ Ext.define('Docs.view.Scrolling', { this.scrollContext = ctx; }, /** * Erases data about the given scrolling context. * * @param {String} ctx A name for the context. */ eraseScrollContext: function(ctx) { delete this.scrollState[ctx]; }, /** * Saves the scroll state in current context. * Loading