From 6aa75c490b5f5d0f54e9a46378ad78d4881c62e7 Mon Sep 17 00:00:00 2001 From: Marc Jansen Date: Tue, 29 Sep 2015 15:23:36 +0200 Subject: [PATCH] Remove goog.isNull in has class --- src/ol/has.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ol/has.js b/src/ol/has.js index fb3b699928..a2c4905794 100644 --- a/src/ol/has.js +++ b/src/ol/has.js @@ -41,7 +41,7 @@ ol.has.CANVAS = ol.ENABLE_CANVAS && ( } try { var context = ol.dom.createCanvasContext2D(); - if (goog.isNull(context)) { + if (!context) { return false; } else { if (context.setLineDash !== undefined) { @@ -129,7 +129,7 @@ ol.has.WEBGL; var gl = ol.webgl.getContext(canvas, { failIfMajorPerformanceCaveat: true }); - if (!goog.isNull(gl)) { + if (gl) { hasWebGL = true; textureSize = /** @type {number} */ (gl.getParameter(gl.MAX_TEXTURE_SIZE));