function G_ObserverServiceObserver(topic, observeFunction, opt_onlyOnce) {
  this.debugZone = "observerserviceobserver";
  this.topic_ = topic;
  this.observeFunction_ = observeFunction;
  this.onlyOnce_ = !!opt_onlyOnce;
  
  this.observer_ = new G_ObserverWrapper(this.topic_, 
                                         BindToObject(this.observe_, this));
  this.observerService_ = Cc["@mozilla.org/observer-service;1"]
                          .getService(Ci.nsIObserverService);
  this.observerService_.addObserver(this.observer_, this.topic_, false);
}
/**
 * This class abstracts the admittedly simple boilerplate required of
 * observing an observerservice topic. It implements the indirection
 * required, and automatically registers to hear the topic.
 *
 * @param topic String containing the topic the observer will filter for
 *
 * @param observeFunction Reference to the function to call when the 
 *                        observer fires
 *
 * @param opt_onlyOnce Boolean indicating if the observer should unregister
 *                     after it has fired
 *
 * @constructor
 */
This class abstracts the admittedly simple boilerplate required of
observing an observerservice topic. It implements the indirection
required, and automatically registers to hear the topic.

@param topic String containing the topic the observer will filter for

@param observeFunction Reference to the function to call when the
observer fires

@param opt_onlyOnce Boolean indicating if the observer should unregister
after it has fired

@constructor
This class abstracts the admittedly simple boilerplate required of observing an observerservice topic . It implements the indirection required and automatically registers to hear the topic . @param topic String containing the topic the observer will filter for @param observeFunction Reference to the function to call when the observer fires @param opt_onlyOnce Boolean indicating if the observer should unregister after it has fired @constructor
function G_ObserverServiceObserver(topic, observeFunction, opt_onlyOnce) {
  this.debugZone = "observerserviceobserver";
  this.topic_ = topic;
  this.observeFunction_ = observeFunction;
  this.onlyOnce_ = !!opt_onlyOnce;
  this.observer_ = new G_ObserverWrapper(this.topic_, 
                                         BindToObject(this.observe_, this));
  this.observerService_ = Cc["@mozilla.org/observer-service;1"]
                          .getService(Ci.nsIObserverService);
  this.observerService_.addObserver(this.observer_, this.topic_, false);
}
function G_ObserverServiceObserver ( topic , observeFunction , opt_onlyOnce ) { this . debugZone = "observerserviceobserver" ; this . topic_ = topic ; this . observeFunction_ = observeFunction ; this . onlyOnce_ = ! ! opt_onlyOnce ; this . observer_ = new G_ObserverWrapper ( this . topic_ , BindToObject ( this . observe_ , this ) ) ; this . observerService_ = Cc [ "@mozilla.org/observer-service;1" ] . getService ( Ci . nsIObserverService ) ; this . observerService_ . addObserver ( this . observer_ , this . topic_ , false ) ; }
This class abstracts the admittedly simple boilerplate required of
 observing an observerservice topic.
This class abstracts the admittedly simple boilerplate required of observing an observerservice topic .