how to namespace many capture events in a Javascript object literal
<p>I am using jQuery events to capture events across a rails app. Basically, there are a set of event captures' on DOM elements that then call other functions. What I'd like to do is provide some namespacing to these event captures and an looking for the best way:</p>

<p>I currently have (but like 60 of them):</p>

<pre><code>$(document).ready(function(){
  $('.edit-item').on('click', arc.event_handler.edit_item);
});
</code></pre>

<p>and would like something like the following - basically provide the edit_item so we know where to look:</p>

<pre><code>$(document).ready(function(){
  var events.edit_item= {
    $('.edit-item').on('click', arc.event_handler.edit_item);
  };
});
</code></pre>

<p>But this is giving me an error. I am familiar with basic object literal syntax like:</p>

<pre><code>var my = {
  say_my_name: function(){
    alert('my name');
  }
}
</code></pre>

<p>but not sure how to apply it with jQuery functions. How would I do this?</p>

<p>I am aware that there are anonymous functions for namespacing this more agressively but, honestly, just want this one change right now</p>

<p>thx in advance</p>
