Merge pull request #7816 from openlayers/optim

Use toString instead of asString in asColorLike
This commit is contained in:
Frédéric Junod
2018-02-12 10:00:10 +01:00
committed by GitHub
+2 -2
View File
@@ -1,7 +1,7 @@
/** /**
* @module ol/colorlike * @module ol/colorlike
*/ */
import {asString} from './color.js'; import {toString} from './color.js';
/** /**
@@ -13,7 +13,7 @@ export function asColorLike(color) {
if (isColorLike(color)) { if (isColorLike(color)) {
return /** @type {string|CanvasPattern|CanvasGradient} */ (color); return /** @type {string|CanvasPattern|CanvasGradient} */ (color);
} else { } else {
return asString(/** @type {ol.Color} */ (color)); return toString(/** @type {ol.Color} */ (color));
} }
} }