partkeepr

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

HydraField.js (493B)


      1 /**
      2  * Adds the config field "byReference" to a field.
      3  *
      4  * byReference tells the system not to serialize the whole item but only its reference.
      5  */
      6 Ext.define('PartKeepr.data.HydraField', {
      7     override: "Ext.data.field.Field",
      8 
      9     byReference: false,
     10 
     11     constructor: function (config)
     12     {
     13         if (config.byReference) {
     14             this.byReference = config.byReference;
     15         } else {
     16             this.byReference = false;
     17         }
     18         this.callParent(arguments);
     19     }
     20 });