GoogleChrome/dialog-polyfill — pull request #2 by suhajdab (2013-09-26 11:14:07+00:00)
Title: Added "close" event triggering and returnValue

- added "close" event triggering for any attached listeners on the
element
- set returnValue on the element if provided as argument for the close()
method

as per spec
http://www.whatwg.org/specs/web-apps/current-work/multipage/commands.html#the-dialog-element