src/core/events.js
function(element, event, callback, capturePhase) {
    if (!element.id) element.id = $.uuid()
    if (!ChuiEventCache.elements[element.id]) {
      ChuiEventCache.elements[element.id] = []
    }
    ChuiEventCache.elements[element.id].push({
      event: event,
      callback: callback
    })
    element.addEventListener(event, callback, capturePhase)
  }
function(element, event, callback, capturePhase) {
    if (!element.id) element.id = $.uuid()
    if (!ChuiEventCache.elements[element.id]) {
      ChuiEventCache.elements[element.id] = []
    }
    ChuiEventCache.elements[element.id].push({
      event: event,
      callback: callback
    })
    element.addEventListener(event, callback, capturePhase)
  }
function ( element , event , callback , capturePhase ) { if ( ! element . id ) element . id = $ . uuid ( ) if ( ! ChuiEventCache . elements [ element . id ] ) { ChuiEventCache . elements [ element . id ] = [ ] } ChuiEventCache . elements [ element . id ] . push ( { event : event , callback : callback } ) element . addEventListener ( event , callback , capturePhase ) }
Private method to set events on ChuiEventCache
Private method to set events on ChuiEventCache