code: function (input) {
  
              var value;
  
              // Get the value or state of the input based on its type
              switch ($(input).attr('type')) {
                  case 'checkbox':
                      value = ($(input).is(':checked')) ? 1 : '';
                      break;
                  case 'radio':
                      value = node.find('input[name="' + $(input).attr('name') + '"]:checked').val() || '';
                      break;
                  default:
                      value = $(input).val();
                      break;
              }
  
              return value;
  
          }
docs: @private
  Helper to get the value of an regular, radio or chackbox input
  
  @param input
  
  @returns {String} value