function assignAttributes(attributes, verificationObject) {
  if (attributes) {
    for (var attrKey in attributes) {
      var attribute = attributes[attrKey];

      if (attribute.nodeName && attribute.nodeValue && verificationObject.hasOwnProperty(attribute.nodeName)) {
        var value = attribute.nodeValue;

        if (typeof verificationObject[attribute.nodeName] === 'boolean') {
          value = parseBoolean(value);
        }

        verificationObject[attribute.nodeName] = value;
      }
    }
  }
}
/**
 * Parses the attributes and assign them to object
 * @param  {Object} attributes attribute
 * @param  {Object} verificationObject with properties which can be assigned
 */
Parses the attributes and assign them to object
@param  {Object} attributes attribute
@param  {Object} verificationObject with properties which can be assigned
Parses the attributes and assign them to object @param { Object } attributes attribute @param { Object } verificationObject with properties which can be assigned
function assignAttributes(attributes, verificationObject) {
  if (attributes) {
    for (var attrKey in attributes) {
      var attribute = attributes[attrKey];
      if (attribute.nodeName && attribute.nodeValue && verificationObject.hasOwnProperty(attribute.nodeName)) {
        var value = attribute.nodeValue;
        if (typeof verificationObject[attribute.nodeName] === 'boolean') {
          value = parseBoolean(value);
        }
        verificationObject[attribute.nodeName] = value;
      }
    }
  }
}
function assignAttributes ( attributes , verificationObject ) { if ( attributes ) { for ( var attrKey in attributes ) { var attribute = attributes [ attrKey ] ; if ( attribute . nodeName && attribute . nodeValue && verificationObject . hasOwnProperty ( attribute . nodeName ) ) { var value = attribute . nodeValue ; if ( typeof verificationObject [ attribute . nodeName ] === 'boolean' ) { value = parseBoolean ( value ) ; } verificationObject [ attribute . nodeName ] = value ; } } } }
Parses the attributes and assign them to object
 @param  {Object} attributes attribute
 @param  {Object} verificationObject with properties which can be assigned
Parses the attributes and assign them to object @param { Object } attributes attribute @param { Object } verificationObject with properties which can be assigned