B2G/gecko/browser/base/content/newtab/dropTargetShim.js
/**
   * Dispatches a custom DragEvent on the given target node.
   * @param aEvent The source event.
   * @param aType The event type.
   * @param aTarget The target node that receives the event.
   */
Dispatches a custom DragEvent on the given target node.
@param aEvent The source event.
@param aType The event type.
@param aTarget The target node that receives the event.
Dispatches a custom DragEvent on the given target node . @param aEvent The source event . @param aType The event type . @param aTarget The target node that receives the event .
function DropTargetShim_dispatchEvent(aEvent, aType, aTarget) {
    let node = aTarget.node;
    let event = document.createEvent("DragEvents");
    event.initDragEvent(aType, true, true, window, 0, 0, 0, 0, 0, false, false,
                        false, false, 0, node, aEvent.dataTransfer);
    node.dispatchEvent(event);
  }
function DropTargetShim_dispatchEvent ( aEvent , aType , aTarget ) { let node = aTarget . node ; let event = document . createEvent ( "DragEvents" ) ; event . initDragEvent ( aType , true , true , window , 0 , 0 , 0 , 0 , 0 , false , false , false , false , 0 , node , aEvent . dataTransfer ) ; node . dispatchEvent ( event ) ; }
Dispatches a custom DragEvent on the given target node.
Dispatches a custom DragEvent on the given target node .