Be stricter with types

This commit is contained in:
Éric Lemoine
2014-08-14 10:56:48 +02:00
parent 5d31d2044a
commit a16a678ca7
6 changed files with 10 additions and 7 deletions

View File

@@ -56,7 +56,8 @@ ol.source.Vector = function(opt_options) {
attributions: options.attributions,
logo: options.logo,
projection: options.projection,
state: options.state
state: goog.isDef(options.state) ?
/** @type {ol.source.State} */ (options.state) : undefined
});
/**