src/vex.js
function close (vexOrId) {
    var id
    if (vexOrId.id) {
      id = vexOrId.id
    } else if (typeof vexOrId === 'string') {
      id = vexOrId
    } else {
      throw new TypeError('close requires a vex object or id string')
    }
    if (!vexes[id]) {
      return false
    }
    return vexes[id].close()
  }
function close (vexOrId) {
    var id
    if (vexOrId.id) {
      id = vexOrId.id
    } else if (typeof vexOrId === 'string') {
      id = vexOrId
    } else {
      throw new TypeError('close requires a vex object or id string')
    }
    if (!vexes[id]) {
      return false
    }
    return vexes[id].close()
  }
function close ( vexOrId ) { var id if ( vexOrId . id ) { id = vexOrId . id } else if ( typeof vexOrId === 'string' ) { id = vexOrId } else { throw new TypeError ( 'close requires a vex object or id string' ) } if ( ! vexes [ id ] ) { return false } return vexes [ id ] . close ( ) }
A top-level vex.close function to close dialogs by reference or id
A top - level vex . close function to close dialogs by reference or id