src/components/range/lib/events.js
function Events (el, obj) {
  if (!(this instanceof Events)) return new Events(el, obj)
  if (!el) throw new Error('element required')
  if (!obj) throw new Error('object required')
  this.el = el
  this.obj = obj
  this._events = {}
}
function Events (el, obj) {
  if (!(this instanceof Events)) return new Events(el, obj)
  if (!el) throw new Error('element required')
  if (!obj) throw new Error('object required')
  this.el = el
  this.obj = obj
  this._events = {}
}
function Events ( el , obj ) { if ( ! ( this instanceof Events ) ) return new Events ( el , obj ) if ( ! el ) throw new Error ( 'element required' ) if ( ! obj ) throw new Error ( 'object required' ) this . el = el this . obj = obj this . _events = { } }
Initialize an `Events` with the given
`el` object which events will be bound to,
and the `obj` which will receive method calls.

@param {Object} el
@param {Object} obj
@api public
Initialize an Events with the given el object which events will be bound to and the obj which will receive method calls .