title: Building app with blocks in Sencha Touch 2?
body: <p>my question is related to building GUIs on Sencha Touch 2 creating first the controls and then instantiating them on a panel's items. Like so:</p>
  
  <pre><code>var myButton = Ext.create('Ext.Button', {
      text: 'Button',
  });
  </code></pre>
  
  <p>And then do this in order to show it on screen:</p>
  
  <pre><code>//..some panel
  items:[{myButton}, {anotherControl}]
  </code></pre>
  
  <p>When I try to do this on Sencha Touch 2, it just throws an error: "Uncaught SyntaxError: Unexpected identifier"</p>
  
  <p>I used to do this on Sencha Touch 1.x and this is driving me crazy because in every example I find in the net, they declare the controls inside the panel using the xtype property. </p>
  
  <p>A small code snippet would be great help for me.</p>
  
  <p>Thanks!</p>