title: Extjs custom vtype
body: <p>im trying validate a textfield with a custom vtype to filter white spaces, ex: "  ".
  I defined my custom vtype in the app.js (im using mvc pattern).</p>
  
  <pre><code>    Ext.Loader.setConfig({
          enabled : true,
          paths: {
              Ext: 'vendor/ext41/src',
              My: 'app'
          } 
      });
      Ext.apply(Ext.form.field.VTypes, {
          descartarBlanco:  function(value) {
              return /^\s+$/.test(value);
          }
      });
  
      Ext.application({
          name: 'CRUDManantiales',
          appFolder: 'app',
          controllers: ['Ui','Usuarios'],
          ....
      });
  </code></pre>
  
  <p>But, Firebug show this error: </p>
  
  <blockquote>
    <p>TypeError: vtypes[vtype] is not a function</p>
  </blockquote>
  
  <p>I would think that the syntax is correct. But, i dont know where insert the code of Vtype.
  any idea ?.
  Thanks.</p>