B2G/gecko/toolkit/components/places/tests/browser/browser_visituri_nohistory.js
/**
 * One-time observer callback.
 */
One-time observer callback.
One - time observer callback .
function waitForObserve(name, callback)
{
  let observer = {
    QueryInterface: XPCOMUtils.generateQI([Ci.nsIObserver]),
    observe: function(subject, topic, data)
    {
      Services.obs.removeObserver(observer, name);
      callback(subject, topic, data);
    }
  };
  Services.obs.addObserver(observer, name, false);
}
function waitForObserve ( name , callback ) { let observer = { QueryInterface : XPCOMUtils . generateQI ( [ Ci . nsIObserver ] ) , observe : function ( subject , topic , data ) { Services . obs . removeObserver ( observer , name ) ; callback ( subject , topic , data ) ; } } ; Services . obs . addObserver ( observer , name , false ) ; }
One-time observer callback.
One - time observer callback .