kylefox/jquery-modal — pull request #12 by adrianolaru (2012-02-18 16:22:22+00:00)
Title: When invoking manually, make sure the $ selection is not empty

I was just checking to see what happens when invoking the modal manually, and I used the $('#sticky') example from examples. As we don't have a #sticky element in the DOM, the modal just display the blocker.

I could use something like

return this.each(function(el) { new $.modal(el, options) }

but it doesn't make sense for this type of plugin as we should not have more than one element selected.