samdark/the-modal — pull request #47 by maximkou (2014-08-13 12:32:14+00:00)
Title: $.modal().close() not use overlay options, defined on open

Referenced and fix #39.

In previous PR, which solve #39, forgotten the case, when the context is not available, e.g. closing modal by clicking close button (and calling `$.modal().close()`) in demo.

I change options, which saved on `init` call in overlay options.
Before: `options`(`$.modal(options).close()`)
Now: `localOptions` - all merged options, which use `init` function. It allows on modal closing use settings, which have been passed to this modal instance on initializing.