# HG changeset patch # User Torsten Irländer # Date 1371802099 -7200 # Node ID 5ef91e9ac7b121ba0982eed461c4537e1e96e9f2 # Parent 88922e5790021f94b2c435d3e40a29098dd89e4f Clean up code and improve comments. diff -r 88922e579002 -r 5ef91e9ac7b1 app.js --- a/app.js Thu Jun 20 15:51:54 2013 +0200 +++ b/app.js Fri Jun 21 10:08:19 2013 +0200 @@ -1,7 +1,7 @@ Ext.application({ name: 'Lada', - // Setting this variable to true should trigger loading the Viewport.js - // file which sets ob the viewport. But this does not happen. + // Setting up translations. This is done using a ext-plgin which can be + // found on https://github.com/elmasse/Ext.i18n.Bundle requires: ['Ext.i18n.Bundle'], bundle: { bundle: 'Lada', @@ -9,11 +9,16 @@ path: 'resources', noCache: true }, + // Setting this variable to true triggers loading the Viewport.js + // file which sets ob the viewport. autoCreateViewport: true, + + + // Start the application. launch: function() { - // Start the application. console.log('Launching the application'); }, + // Define the controllers of the application. They will be initialized // first before the application "launch" function is called. controllers: [ @@ -23,6 +28,5 @@ 'Zusatzwerte', 'Orte', 'Messungen' - ] });