examples/bower_components/polymer/polymer.js
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);
      }
    }
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);
      }
    }
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 ) ; } }
serializes `name` property value and updates the corresponding attribute note that reflection is opt-in.
serializes name property value and updates the corresponding attribute note that reflection is opt - in .