title: Is it possible to call a class method with addEventListener?
body: <p>Just something I've been wondering. In the second parameter in the <code>.addEventListener</code> method, can you call a "(custom) class method" instead of a function? </p>
  
  <p>i.e Would something like the following work? </p>
  
  <pre><code>var object = new ClassName();
  document.getElementById('x').addEventListener('click', object.method, false);
  </code></pre>