function UpdateAllObserver(callback, pollableDataHelpers) {
    this.callback_ = callback;
    this.observingCount_ = 0;
    this.updatedData_ = {};

    for (var name in pollableDataHelpers) {
      ++this.observingCount_;
      var helper = pollableDataHelpers[name];
      helper.addObserver(this);
      this[helper.getObserverMethodName()] =
          this.onDataReceived_.bind(this, helper, name);
    }
  }
/**
   * This is a helper class used by BrowserBridge to send data to
   * a callback once data from all polls has been received.
   *
   * It works by keeping track of how many polling functions have
   * yet to receive data, and recording the data as it it received.
   *
   * @constructor
   */
This is a helper class used by BrowserBridge to send data to
a callback once data from all polls has been received.

It works by keeping track of how many polling functions have
yet to receive data, and recording the data as it it received.

@constructor
This is a helper class used by BrowserBridge to send data to a callback once data from all polls has been received . It works by keeping track of how many polling functions have yet to receive data and recording the data as it it received . @constructor
function UpdateAllObserver(callback, pollableDataHelpers) {
    this.callback_ = callback;
    this.observingCount_ = 0;
    this.updatedData_ = {};
    for (var name in pollableDataHelpers) {
      ++this.observingCount_;
      var helper = pollableDataHelpers[name];
      helper.addObserver(this);
      this[helper.getObserverMethodName()] =
          this.onDataReceived_.bind(this, helper, name);
    }
  }
function UpdateAllObserver ( callback , pollableDataHelpers ) { this . callback_ = callback ; this . observingCount_ = 0 ; this . updatedData_ = { } ; for ( var name in pollableDataHelpers ) { ++ this . observingCount_ ; var helper = pollableDataHelpers [ name ] ; helper . addObserver ( this ) ; this [ helper . getObserverMethodName ( ) ] = this . onDataReceived_ . bind ( this , helper , name ) ; } }
This is a helper class used by BrowserBridge to send data to
 a callback once data from all polls has been received.
This is a helper class used by BrowserBridge to send data to a callback once data from all polls has been received .