title: Titanium Javascript: How to create dynamic eventListeners?
body: <p>I have an array of buttons and I want to add an eventListener to each of them.</p>
  
  <p>In the eventListener, I want to retrieve the width value of the button that is currently being pressed. How can I do that?</p>
  
  <pre><code>for (i=0; i&lt;5; i++) {
  button[i].addEventListener(click, function(e) {
  alert(/*How should I refer to THAT button*/)
  })
  }
  </code></pre>