Fix type error in ol.layer.Vector

This commit is contained in:
Frederic Junod
2014-02-26 15:50:13 +01:00
committed by Éric Lemoine
parent e213bccef7
commit 69749dee55

View File

@@ -25,11 +25,10 @@ ol.layer.Vector = function(opt_options) {
var options = goog.isDef(opt_options) ?
opt_options : /** @type {olx.layer.VectorOptions} */ ({});
var baseOptions = /** @type {olx.layer.LayerOptions} */
(goog.object.clone(options));
var baseOptions = goog.object.clone(options);
delete baseOptions.style;
goog.base(this, baseOptions);
goog.base(this, /** @type {olx.layer.LayerOptions} */ (baseOptions));
/**
* User provided style.