function parseEventOptions(options) {
  let useCapture = false
  if (options) {
    if (typeof options === 'object') {
      // eslint-disable-next-line no-unneeded-ternary
      useCapture = options.useCapture ? true : false
    } else {
      useCapture = options
    }
  }
  return passiveEventSupported ? options : useCapture
}
// Normalize event options based on support of passive option
Normalize event options based on support of passive option
Normalize event options based on support of passive option
function parseEventOptions(options) {
  let useCapture = false
  if (options) {
    if (typeof options === 'object') {
      useCapture = options.useCapture ? true : false
    } else {
      useCapture = options
    }
  }
  return passiveEventSupported ? options : useCapture
}
function parseEventOptions ( options ) { let useCapture = false if ( options ) { if ( typeof options === 'object' ) { useCapture = options . useCapture ? true : false } else { useCapture = options } } return passiveEventSupported ? options : useCapture }
Normalize event options based on support of passive option
Normalize event options based on support of passive option
// eslint-disable-next-line no-unneeded-ternary