kylefox/jquery-modal — pull request #15 by adrianolaru (2012-02-19 13:12:55+00:00)
Title: Bug fixing and made code object oriented

First commit

Resizing and centering bug fixes
* Used the right API in Resize example
* Resize only if a modal exists
* Center modal after applying modalClass styles
This fixes centering the modal in AJAX example,
but it also fixes the case where a modal element
doesn't have a modalClass set.
* Added event parameter to $.modal.close which got lost on the way.

Second commit

Made the code object oriented. Pass the actual modal object to all events and save it to current. center, resize, open, close, show, hide, block, unblock are methods of modal object now (it's prototype actually).