Use Array.isArray instead of goog.isArray

This commit is contained in:
Frederic Junod
2016-02-08 14:04:29 +01:00
parent fb4992b580
commit 80e984a9c3
23 changed files with 39 additions and 39 deletions
+2 -2
View File
@@ -61,7 +61,7 @@ ol.color.rgbaColorRe_ =
* @api
*/
ol.color.asArray = function(color) {
if (goog.isArray(color)) {
if (Array.isArray(color)) {
return color;
} else {
goog.asserts.assert(typeof color === 'string', 'Color should be a string');
@@ -80,7 +80,7 @@ ol.color.asString = function(color) {
if (typeof color === 'string') {
return color;
} else {
goog.asserts.assert(goog.isArray(color), 'Color should be an array');
goog.asserts.assert(Array.isArray(color), 'Color should be an array');
return ol.color.toString(color);
}
};