zurb/foundation — pull request #606 by alettieri (2012-07-07 10:02:51+00:00)
Title: Added comments to reveal plugin.

I spent some time commenting the reveal plugin code. Thought it may be helpful for future support as well as (hopefully) educational purposes.

Also made some slight updates to the code. I created an object variable used to set the css properties of the modal object. Called it cssOpts.

This way we can simply update the css object property values before setting the css values using the jQuery.css method.

Removed the 'modal' parameter from the closeOpenModals method, the passed in variable never gets used.

Also created a $doc variable to cache the $( document ) object early on in the .each loop.