modxcms/revolution — pull request #293 by silentworks (2012-04-04 09:41:14+00:00)
Title: Update manager/assets/modext/widgets/core/modx.window.js

This is a fix to allow the close button to follow the closeAction, this is currently leaving the DOM heavy in some of Mark Hamstra extras because even if he set closeAction: 'close', this is not actually fired unless the user presses ESC on the keyboard due to the close button only hiding the window.

There will be instances where the user will need to instantiate a new window each time rather than reusing the same one. Yet again if you have a look at Mark's bdListings and I am currently working on a website that had to use the same approach but had to call the close method inside the hide listener as a temporary measure.