Ignore:
Timestamp:
03/19/14 21:33:13 (11 years ago)
Author:
hendrikvanantwerpen
Message:
  • Allow empty subcodes.
  • Use HTTPResult exclusively on server (no more q).
  • Set readonly & disabled on ourselves as well in _ComplexValueMixin
  • Split server into several modules.
  • Check codes on the variable level, not question level.
  • We can add modules in design documents now.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Dev/trunk/src/client/qed-client/model/classes/_Class.js

    r510 r525  
    7171            } else if ( lang.isObject(obj) ) {
    7272                objectFuns.forEach(obj,function(v,prop){
    73                     if ( v === null ||
    74                          v === "" ||
    75                          (typeof v === "number" && isNaN(v)) ) {
     73                    if ( ( v === null ||
     74                           v === "" ||
     75                           (typeof v === "number" && isNaN(v)) ) &&
     76                         prop !== 'subcode' ) // HACK : this hardcoded exclusion for subcode is quite nasty
     77                    {
    7678                        delete obj[prop];
    7779                    } else {
Note: See TracChangeset for help on using the changeset viewer.