use goog.events.dispatchEvent

This commit is contained in:
Éric Lemoine
2012-07-09 09:33:53 +02:00
parent 1679a59835
commit 484d0f8d04

View File

@@ -428,7 +428,7 @@ ol.Map.prototype.addLayers = function(layers) {
for (var i=0, ii=layers.length; i<ii; ++i) {
layer = layers[i];
this.layers_.push(layer);
this.dispatchEvent({type: 'layeradd', 'layer': layer});
goog.events.dispatchEvent(this, {type: 'layeradd', 'layer': layer});
}
this.conditionallyRender();
};