What is the purpose of (win) in javascript?
<p>I have the following code:</p>

<pre><code> $.modal({
        content: '&lt;p&gt;Are you sure you want to delete?&lt;/p&gt;',
        title: 'Delete confimation',
        maxWidth: 500,
        buttons: {
                    'Yes': function(win) {
                        win.closeModal();
                    },
                    'No': function(win) {
                        win.closeModal();
                    }
        }
    });
</code></pre>

<p>Can someone explain what (win) means? I can see it used a few times but I am not sure what it is doing?</p>
