jquery-popupwindow
jquery-popupwindow copied to clipboard
Add object only api
Allow user to only pass in an object, with a key for url. This commit maintains backwards compatibility.
This is optional, I like passing 1 (potentially complex) object to a function. This is cleaner in my opinion, and for only a couple of lines I think its should be added in the base project.
I use this by defining a set of defaults I always want to use, then when I'm ready to call the plugin I extend my setting array with the specifics of that call.
Again, this is purely preference, but I prefer this api, and others may also.
Hows that?
Looks good. Could you update the readme to reflect this change? @mkdynamic what do you think about this?
Ill do that today.
Any chance this could land?
Looks good to me fwiw. @lencioni