src/durruti.js
function cleanAttrNodes ($container, includeParent) {
  var nodes = [].slice.call($container.querySelectorAll(durrutiElemSelector))

  if (includeParent) {
    nodes.push($container)
  }

  nodes.forEach(($node) => {
    // cache component in node
    $node._durruti = getCachedComponent($node)

    // clean-up data attributes
    $node.removeAttribute(durrutiAttr)
  })

  return nodes
}
function cleanAttrNodes ($container, includeParent) {
  var nodes = [].slice.call($container.querySelectorAll(durrutiElemSelector))

  if (includeParent) {
    nodes.push($container)
  }

  nodes.forEach(($node) => {
    // cache component in node
    $node._durruti = getCachedComponent($node)

    // clean-up data attributes
    $node.removeAttribute(durrutiAttr)
  })

  return nodes
}
function cleanAttrNodes ( $container , includeParent ) { var nodes = [ ] . slice . call ( $container . querySelectorAll ( durrutiElemSelector ) ) if ( includeParent ) { nodes . push ( $container ) } nodes . forEach ( ( $node ) => { // cache component in node $node . _durruti = getCachedComponent ( $node ) // clean-up data attributes $node . removeAttribute ( durrutiAttr ) } ) return nodes }
remove custom data attributes, and cache the component on the DOM node.
remove custom data attributes and cache the component on the DOM node .