B2G/gaia/apps/homescreen/js/dragdrop.js
/*
   * This method is executed when dragging starts
   *
   * {Object} This is the DOMElement which was tapped and hold
   */
This method is executed when dragging starts
{Object} This is the DOMElement which was tapped and hold
This method is executed when dragging starts { Object } This is the DOMElement which was tapped and hold
function onStart(elem) {
    overlapElem = elem;
    draggableIcon = GridManager.getIcon(elem.dataset);
    draggableIcon.onDragStart(sx, sy);
    draggableElemStyle = draggableIcon.draggableElem.style;
    if (overlapingDock) {
      draggableIcon.addClassToDragElement('overDock');
    } else if (DockManager.isFull()) {
      isDockDisabled = true;
    }
  }
function onStart ( elem ) { overlapElem = elem ; draggableIcon = GridManager . getIcon ( elem . dataset ) ; draggableIcon . onDragStart ( sx , sy ) ; draggableElemStyle = draggableIcon . draggableElem . style ; if ( overlapingDock ) { draggableIcon . addClassToDragElement ( 'overDock' ) ; } else if ( DockManager . isFull ( ) ) { isDockDisabled = true ; } }
This method is executed when dragging starts
 {Object} This is the DOMElement which was tapped and hold
This method is executed when dragging starts { Object } This is the DOMElement which was tapped and hold