UNPKG

extjs-gpl

Version:

GPL licensed version of Sencha Ext JS

24 lines (21 loc) 652 B
/** * The main application class. An instance of this class is created by app.js when it * calls Ext.application(). This is the ideal place to handle application launch and * initialization details. */ Ext.define('FeedViewer.Application', { extend: 'Ext.app.Application', name: 'FeedViewer', requires: [ 'Ext.window.MessageBox' ], onAppUpdate: function () { Ext.Msg.confirm('Application Update', 'This application has an update, reload?', function (choice) { if (choice === 'yes') { window.location.reload(); } } ); } });