function Actor(target, parent, mapId) {
    this.target = target;
    this.parent = parent;
    this.mapId = mapId;
    this.callbacks = {};
    this.callbackID = 0;
    this.receive = this.receive.bind(this);
    this.target.addEventListener('message', this.receive, false);
}
/**
 * An implementation of the [Actor design pattern](http://en.wikipedia.org/wiki/Actor_model)
 * that maintains the relationship between asynchronous tasks and the objects
 * that spin them off - in this case, tasks like parsing parts of styles,
 * owned by the styles
 *
 * @param {WebWorker} target
 * @param {WebWorker} parent
 * @param {string|number} mapId A unique identifier for the Map instance using this Actor.
 * @private
 */
An implementation of the [Actor design pattern]
that maintains the relationship between asynchronous tasks and the objects
that spin them off - in this case, tasks like parsing parts of styles,
owned by the styles

@param {WebWorker} target
@param {WebWorker} parent
@param {string|number} mapId A unique identifier for the Map instance using this Actor.
@private
An implementation of the [ Actor design pattern ] that maintains the relationship between asynchronous tasks and the objects that spin them off - in this case tasks like parsing parts of styles owned by the styles @param { WebWorker } target @param { WebWorker } parent @param { string|number } mapId A unique identifier for the Map instance using this Actor . @private
function Actor(target, parent, mapId) {
    this.target = target;
    this.parent = parent;
    this.mapId = mapId;
    this.callbacks = {};
    this.callbackID = 0;
    this.receive = this.receive.bind(this);
    this.target.addEventListener('message', this.receive, false);
}
function Actor ( target , parent , mapId ) { this . target = target ; this . parent = parent ; this . mapId = mapId ; this . callbacks = { } ; this . callbackID = 0 ; this . receive = this . receive . bind ( this ) ; this . target . addEventListener ( 'message' , this . receive , false ) ; }
An implementation of the [Actor design pattern](http://en.wikipedia.org/wiki/Actor_model)
 that maintains the relationship between asynchronous tasks and the objects
 that spin them off - in this case, tasks like parsing parts of styles,
 owned by the styles
An implementation of the [ Actor design pattern ] ( http : // en . wikipedia . org / wiki / Actor_model ) that maintains the relationship between asynchronous tasks and the objects that spin them off - in this case tasks like parsing parts of styles owned by the styles