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
+2 -1
View File
@@ -23,7 +23,8 @@ ol.source.ImageCanvas = function(options) {
logo: options.logo,
projection: options.projection,
resolutions: options.resolutions,
state: options.state
state: goog.isDef(options.state) ?
/** @type {ol.source.State} */ (options.state) : undefined
});
/**