Upgrading to 1.9
<p>Can someone help me upgrading the following code? I'm attempting to upgrade from jQuery 1.6.4 to 1.9.</p>

<pre><code>// Setup Link Buttons to accept spacebar
  $("a.button").die("keypress").live("keypress", function(e) {
                    if (e.which == 32) {
                        $(this).trigger("click");
                        e.preventDefault();
                    }
                });
</code></pre>

<p>Here is my attempt:</p>

<pre><code>$(document).off("keypress", "a.button").on("keypress", "a.button", function(e) {
                        if (e.which == 32) {
                            $(this).trigger("click");
                            e.preventDefault();
                        }
                    });
</code></pre>

<p>Does this look correct?</p>

<p>Thanks</p>
