Remove goog.isNull in webgl classes

This commit is contained in:
Marc Jansen
2015-09-29 15:21:41 +02:00
parent f9b07991e1
commit 7ceb7a439e
2 changed files with 3 additions and 3 deletions

View File

@@ -34,7 +34,7 @@ ol.webgl.getContext = function(canvas, opt_attributes) {
for (i = 0; i < ii; ++i) {
try {
context = canvas.getContext(ol.webgl.CONTEXT_IDS_[i], opt_attributes);
if (!goog.isNull(context)) {
if (context) {
return /** @type {!WebGLRenderingContext} */ (context);
}
} catch (e) {