Resources/public/js/editor/dist/step-editor.js
/**
 * Create a javascript object to get the map all the attribute of the given element, as well as the value
 *
 * @param element
 *
 * @return {object}
 */
Create a javascript object to get the map all the attribute of the given element, as well as the value
@param element

@return {object}
Create a javascript object to get the map all the attribute of the given element as well as the value @param element @return { object }
function createAttributeMapObject (element) {
  var attributes = element.attributes;
  var object = {};
  for (var attribute, i = 0, length = attributes.length; i < length; i++) {
    attribute = attributes[i];
    object[attribute.nodeName] = attribute.nodeValue;
  }
  object.value = element.value;
  return object;
}
function createAttributeMapObject ( element ) { var attributes = element . attributes ; var object = { } ; for ( var attribute , i = 0 , length = attributes . length ; i < length ; i ++ ) { attribute = attributes [ i ] ; object [ attribute . nodeName ] = attribute . nodeValue ; } object . value = element . value ; return object ; }
Create a javascript object to get the map all the attribute of the given element, as well as the value
 @param element
Create a javascript object to get the map all the attribute of the given element as well as the value @param element