Replace goog.array.contains with ol.array.includes
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
goog.provide('ol.webgl.Context');
|
||||
|
||||
goog.require('goog.array');
|
||||
goog.require('goog.asserts');
|
||||
goog.require('goog.events');
|
||||
goog.require('goog.log');
|
||||
goog.require('goog.object');
|
||||
goog.require('ol');
|
||||
goog.require('ol.array');
|
||||
goog.require('ol.webgl.Buffer');
|
||||
goog.require('ol.webgl.WebGLContextEventType');
|
||||
|
||||
@@ -87,7 +87,7 @@ ol.webgl.Context = function(canvas, gl) {
|
||||
/**
|
||||
* @type {boolean}
|
||||
*/
|
||||
this.hasOESElementIndexUint = goog.array.contains(
|
||||
this.hasOESElementIndexUint = ol.array.includes(
|
||||
ol.WEBGL_EXTENSIONS, 'OES_element_index_uint');
|
||||
|
||||
// use the OES_element_index_uint extension if available
|
||||
|
||||
Reference in New Issue
Block a user