Explain that return of ol.color.asArray should not be modified

This commit is contained in:
Bart van den Eijnden committed 2014-12-04 09:07:21 +01:00
1 parent 6255d8b493
commit 22e33519c8
1 file changed
+3
+3
View File
@@ -94,6 +94,8 @@ ol.color.blend = function(dst, src, opt_color) {
/**
* Return the color as an array. This function maintains a cache of calculated
* arrays which means the result should not be modified.
* @param {ol.Color|string} color Color.
* @return {ol.Color} Color.
* @api
@@ -109,6 +111,7 @@ ol.color.asArray = function(color) {
/**
* Return the color as an rgba string.
* @param {ol.Color|string} color Color.
* @return {string} Rgba string.
* @api