function _ensureElement( domElement, msg ) {
  if ( domElement instanceof HTMLElement === false ) {
    msg = msg || DOM_INVALID;
    throw new Error( msg );
  }

  return domElement;
}
/**
* Function used to create a dom element.
* @param {HTMLNode} domElement - dom selector
* @param {string} msg - used for Error display.
* @returns {HTMLNode} A dom element.
*/
Function used to create a dom element.
Function used to create a dom element .
function _ensureElement( domElement, msg ) {
  if ( domElement instanceof HTMLElement === false ) {
    msg = msg || DOM_INVALID;
    throw new Error( msg );
  }
  return domElement;
}
function _ensureElement ( domElement , msg ) { if ( domElement instanceof HTMLElement === false ) { msg = msg || DOM_INVALID ; throw new Error ( msg ) ; } return domElement ; }
Function used to create a dom element.
Function used to create a dom element .