title: How to pass arguments to functions binded in events object in backbone.js
body: <p>I need to have arguments to the functions used in the events object in Backbone.</p>
  
  <pre><code>var DocumentRow = Backbone.View.extend({
  
      tagName: "li",
  
      className: "document-row",
  
      events: {
          "click .icon": "open",
          "click .button.edit": "openEditDialog",
          "click .button.delete": "destroy"
      },
  
      render: function () {
          // do something
      }
  });
  </code></pre>
  
  <p>Now let the definition of open be:</p>
  
  <pre><code>function open(id) {
      if (id) {
        // do something
      } else {
        // do something else
      }
  }
  </code></pre>
  
  <p>I will call open from another function and will pass id when I call it. So based on whether I pass id or not I need to do different things. How do I do this in Backbone?
  Currently, id when called via click I expect it to be undefined. But an event object is passed.</p>
  
  <p>Why does this happend and how can I pass an argument?</p>