function AP_addActor(aActor) {
    aActor.conn = this.conn;
    if (!aActor.actorID) {
      aActor.actorID = this.conn.allocID(aActor.actorPrefix || undefined);
    }

    if (aActor.registeredPool) {
      aActor.registeredPool.removeActor(aActor);
    }
    aActor.registeredPool = this;

    this._actors[aActor.actorID] = aActor;
    if (aActor.disconnect) {
      this._cleanups[aActor.actorID] = aActor;
    }
  }
/**
   * Add an actor to the actor pool.  If the actor doesn't have an ID,
   * allocate one from the connection.
   *
   * @param aActor object
   *        The actor implementation.  If the object has a
   *        'disconnected' property, it will be called when the actor
   *        pool is cleaned up.
   */
Add an actor to the actor pool.  If the actor doesn't have an ID,
allocate one from the connection.

@param aActor object
The actor implementation.  If the object has a
'disconnected' property, it will be called when the actor
pool is cleaned up.
Add an actor to the actor pool . If the actor doesn ' t have an ID allocate one from the connection . @param aActor object The actor implementation . If the object has a ' disconnected ' property it will be called when the actor pool is cleaned up .
function AP_addActor(aActor) {
    aActor.conn = this.conn;
    if (!aActor.actorID) {
      aActor.actorID = this.conn.allocID(aActor.actorPrefix || undefined);
    }
    if (aActor.registeredPool) {
      aActor.registeredPool.removeActor(aActor);
    }
    aActor.registeredPool = this;
    this._actors[aActor.actorID] = aActor;
    if (aActor.disconnect) {
      this._cleanups[aActor.actorID] = aActor;
    }
  }
function AP_addActor ( aActor ) { aActor . conn = this . conn ; if ( ! aActor . actorID ) { aActor . actorID = this . conn . allocID ( aActor . actorPrefix || undefined ) ; } if ( aActor . registeredPool ) { aActor . registeredPool . removeActor ( aActor ) ; } aActor . registeredPool = this ; this . _actors [ aActor . actorID ] = aActor ; if ( aActor . disconnect ) { this . _cleanups [ aActor . actorID ] = aActor ; } }
Add an actor to the actor pool.
Add an actor to the actor pool .