partkeepr

fork of partkeepr
git clone https://git.e1e0.net/partkeepr.git
Log | Files | Refs | Submodules | README | LICENSE

Array.js (396B)


      1 Ext.define('PartKeepr.data.field.Array', {
      2     extend: 'Ext.data.field.Field',
      3 
      4     alias: [
      5         'data.field.array'
      6     ],
      7 
      8     /**
      9      * @property [trueRe]
     10      * Values matching this regular expression are considered `true`.
     11      */
     12     trueRe: /^\s*(?:true|yes|on|1)\s*$/i,
     13 
     14     convert: function (v) {
     15         return v;
     16     },
     17 
     18     getType: function() {
     19         return 'array';
     20     }
     21 });