Remove goog.isNull in has class

This commit is contained in:
Marc Jansen
2015-09-29 15:23:36 +02:00
parent 89456e7906
commit 6aa75c490b

View File

@@ -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));