src/render/browser/extend/components/slider/carrousel.js
function cloneEvents(origin, clone, deep) {
      var listeners = origin._listeners
      if (listeners) {
        clone._listeners = listeners
        for (var type in listeners) {
          clone.addEventListener(type, listeners[type])
        }
      }
      if (deep && origin.children && origin.children.length) {
        for (var i = 0, l = origin.children.length; i < l; i++) {
          cloneEvents(origin.children[i], clone.children[i], deep)
        }
      }
    }
function cloneEvents(origin, clone, deep) {
      var listeners = origin._listeners
      if (listeners) {
        clone._listeners = listeners
        for (var type in listeners) {
          clone.addEventListener(type, listeners[type])
        }
      }
      if (deep && origin.children && origin.children.length) {
        for (var i = 0, l = origin.children.length; i < l; i++) {
          cloneEvents(origin.children[i], clone.children[i], deep)
        }
      }
    }
function cloneEvents ( origin , clone , deep ) { var listeners = origin . _listeners if ( listeners ) { clone . _listeners = listeners for ( var type in listeners ) { clone . addEventListener ( type , listeners [ type ] ) } } if ( deep && origin . children && origin . children . length ) { for ( var i = 0 , l = origin . children . length ; i < l ; i ++ ) { cloneEvents ( origin . children [ i ] , clone . children [ i ] , deep ) } } }
If there a _listeners attribute on the dom element then clone the _listeners as well for the events' binding
If there a _listeners attribute on the dom element then clone the _listeners as well for the events binding