B2G/gecko/toolkit/components/places/tests/head_common.js
/**
 * Shutdowns Places, invoking the callback when the connection has been closed.
 *
 * @param aCallback
 *        Function to be called when done.
 */
Shutdowns Places, invoking the callback when the connection has been closed.
@param aCallback
Function to be called when done.
Shutdowns Places invoking the callback when the connection has been closed . @param aCallback Function to be called when done .
function waitForConnectionClosed(aCallback)
{
  Services.obs.addObserver(function WFCCCallback() {
    Services.obs.removeObserver(WFCCCallback, "places-connection-closed");
    aCallback();
  }, "places-connection-closed", false);
  shutdownPlaces();
}
function waitForConnectionClosed ( aCallback ) { Services . obs . addObserver ( function WFCCCallback ( ) { Services . obs . removeObserver ( WFCCCallback , "places-connection-closed" ) ; aCallback ( ) ; } , "places-connection-closed" , false ) ; shutdownPlaces ( ) ; }
Shutdowns Places, invoking the callback when the connection has been closed.
Shutdowns Places invoking the callback when the connection has been closed .