When running the code in Google Chrome, an alert is created (as expected) with the text "Launch".

But afterwards, when using the console to access the global variable, in this S, i get a 'ReferenceError'.

If i run the same code with v.1.1 ( and change the Ext.application to Ext.regApplication) i have no problem accessing the global variable and calling its functions e.g. S.launch()

What am i missing?

<!DOCTYPE html>
        <script type="text/javascript" src="lib/touch/sencha-touch-all.js"></script>
        <link href="lib/touch/resources/css/sencha-touch.css" rel="stylesheet" type="text/css" />
       <script type="text/javascript">
             name: 'S',
             launch: function() {
             this.launched = true;