vodkabears / Remodal

No longer actively maintained.
http://vodkabears.github.io/remodal/
MIT License
2.76k stars 774 forks source link

e.reason not existing? #265

Open wally opened 7 years ago

wally commented 7 years ago

Hi,

When using the closing event detection, e.reason doesn't exist. It's missing in e.

For example, the example code

$(document).on('closed', '.remodal', function (e) {

  // Reason: 'confirmation', 'cancellation'
  console.log('Modal is closed' + (e.reason ? ', reason: ' + e.reason : ''));
  console.log(e)
});

Will return

Modal is closed (and then a r.Event with no reason)

Is it gone or have I done something wrong?

Thanks, wally