code: function(name) {
        var inferredType = typeof this[name];
        // try to intelligently serialize property value
        var serializedValue = this.serializeValue(this[name], inferredType);
        // boolean properties must reflect as boolean attributes
        if (serializedValue !== undefined) {
          this.setAttribute(name, serializedValue);
          // TODO(sorvell): we should remove attr for all properties
          // that have undefined serialization; however, we will need to
          // refine the attr reflection system to achieve this; pica, for example,
          // relies on having inferredType object properties not removed as
          // attrs.
        } else if (inferredType === 'boolean') {
          this.removeAttribute(name);
        }
      }
docs: serializes `name` property value and updates the corresponding attribute note that reflection is opt-in.