title: Unable to read the "PreventDefault()" and dataTransfer()
body: <p>Even though I am passing the event when calling a function and using this event to call "preventDefault()" and "dataTransfer.setData()", I am not been able to get the result, the chrome is saying "Uncaught TypeError: Cannot read property 'preventDefault' of undefined" and "Uncaught TypeError: Cannot read property 'dataTransfer' of undefined" . Plz help me</p>
  
  <pre><code>img.addEventListener("ondragstart",drag(event),false);
  canvasA.addEventListener("ondrop",drop(event),false);
  canvasA.addEventListener("ondragover",allowDrop(event),false);
  
  function allowDrop(e)
  {
  e.preventDefault();
  }
  
  function drag(e)
  {
  e.dataTransfer.setData("Text",e.target);
  }
  </code></pre>