title: Javascript Function Error From Event Listeners
body: <pre><code>function start(){
      var onChangeHandler = function() {
         calculateAndDisplayRoute(directionsService, directionsDisplay);
      };
  document.getElementById('pac-input').addEventListener('change',onChangeHandler);
  document.getElementById('pac-input2').addEventListener('change', onChangeHandler);
  }
  </code></pre>
  
  <p>Everytime I change the first element, I get an error because I am suppose to pass two arguments into 'onChangeHandler'. Is there any way I can block my code from producing this error? Once I change the second element, my code works fine since I would have passed two argument into 'onChangeHandler'. </p>