B2G/gecko/browser/components/search/content/engineManager.js
/**
   * Moves the selected engine either up or down in the engine list
   * @param aDir
   *        -1 to move the selected engine down, +1 to move it up.
   */
Moves the selected engine either up or down in the engine list
@param aDir
-1 to move the selected engine down, +1 to move it up.
Moves the selected engine either up or down in the engine list @param aDir - 1 to move the selected engine down + 1 to move it up .
function engineManager_move(aDir) {
    var selectedEngine = gEngineView.selectedEngine;
    var newIndex = gEngineView.selectedIndex - aDir;
    gEngineView._engineStore.moveEngine(selectedEngine, newIndex);
    gEngineView.invalidate();
    gEngineView.selection.select(newIndex);
    gEngineView.ensureRowIsVisible(newIndex);
    this.showRestoreDefaults(true);
    document.getElementById("engineList").focus();
  }
function engineManager_move ( aDir ) { var selectedEngine = gEngineView . selectedEngine ; var newIndex = gEngineView . selectedIndex - aDir ; gEngineView . _engineStore . moveEngine ( selectedEngine , newIndex ) ; gEngineView . invalidate ( ) ; gEngineView . selection . select ( newIndex ) ; gEngineView . ensureRowIsVisible ( newIndex ) ; this . showRestoreDefaults ( true ) ; document . getElementById ( "engineList" ) . focus ( ) ; }
Moves the selected engine either up or down in the engine list
 @param aDir
        -1 to move the selected engine down, +1 to move it up.
Moves the selected engine either up or down in the engine list @param aDir - 1 to move the selected engine down + 1 to move it up .