js/dialogue.js
function handleMousedown(event) {

  // get currently open dialogue
  var dialogue = getDialogueCurrent();

  if (dialogue.options.hardClose) {
    return;
  }

  var result = helper.isInside(event.target, dialogue.dialogue);
  if (!result) {
    closeInstance(dialogue);
  }
}
function handleMousedown(event) {

  // get currently open dialogue
  var dialogue = getDialogueCurrent();

  if (dialogue.options.hardClose) {
    return;
  }

  var result = helper.isInside(event.target, dialogue.dialogue);
  if (!result) {
    closeInstance(dialogue);
  }
}
function handleMousedown ( event ) { // get currently open dialogue var dialogue = getDialogueCurrent ( ) ; if ( dialogue . options . hardClose ) { return ; } var result = helper . isInside ( event . target , dialogue . dialogue ) ; if ( ! result ) { closeInstance ( dialogue ) ; } }
clicking anything not inside the most current dialogue
clicking anything not inside the most current dialogue