jQuery's $.proxy vs var self - The common way to preserve the context of `this`
<p>What is the common way to preserve the context of <code>this</code>?
What is faster? What would you prefer?</p>

<ol>
<li><p>$.proxy(...)</p>

<pre><code>$('a').on('click', $.proxy(function() {
    this.close();
}, this));
</code></pre></li>
<li><p>var self</p>

<pre><code>var self = this;

$('a').on('click', function() {
    self.close();
});
</code></pre></li>
</ol>
