Allow override of "outsideClick" function

Previously triggered `hide` (which includes a submit), this allows applications to trigger `cancel`, or anything else, instead.