Sha256: a073bf3152bf6c8bd97dc6c0d4c1e5b13f5a2e7e38d2833028b0a03efea03837
Contents?: true
Size: 1.25 KB
Versions: 3
Compression:
Stored size: 1.25 KB
Contents
/** * Main application definition for Docs app. * * We define our own Application class because this way we can also * easily define the dependencies. */ Ext.define('Docs.Application', { extend: 'Ext.app.Application', name: 'Docs', requires: [ 'Docs.Favorites', 'Docs.History', 'Docs.Settings' ], uses: [ 'Ext.util.History', 'Ext.data.JsonP' ], controllers: [ 'Classes', 'Search' ], launch: function() { Docs.App = this; Docs.Favorites.init(); Docs.Settings.init(); Ext.create('Docs.view.Viewport'); // Update favorites grid height between browser tabs if changed Ext.getStore('Settings').on('load', function(store) { var favHeight = Docs.Settings.get('favorites-height'); if (favHeight) { var tabPanel = Ext.getCmp('classes-tab-panel'); tabPanel.suspendEvents(); tabPanel.setHeight(favHeight); tabPanel.resumeEvents(); } }); Docs.History.init(); // When google analytics event tracking script present on page if (Docs.initEventTracking) { Docs.initEventTracking(); } } });
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
jsduck-2.0.pre4 | template/app/Application.js |
jsduck-2.0.pre2 | template/app/Application.js |
jsduck-2.0.pre | template/app/Application.js |