No empty blocks

This commit is contained in:
Tim Schaub
2016-01-04 17:40:51 -07:00
parent 4e0cddcb41
commit 29a723166d
3 changed files with 5 additions and 1 deletions

View File

@@ -133,7 +133,9 @@ ol.has.WEBGL;
(gl.getParameter(gl.MAX_TEXTURE_SIZE)); (gl.getParameter(gl.MAX_TEXTURE_SIZE));
extensions = gl.getSupportedExtensions(); extensions = gl.getSupportedExtensions();
} }
} catch (e) {} } catch (e) {
// pass
}
} }
ol.has.WEBGL = hasWebGL; ol.has.WEBGL = hasWebGL;
ol.WEBGL_EXTENSIONS = extensions; ol.WEBGL_EXTENSIONS = extensions;

View File

@@ -272,5 +272,6 @@ ol.pointer.PointerEvent.HAS_BUTTONS = false;
var ev = new MouseEvent('click', {buttons: 1}); var ev = new MouseEvent('click', {buttons: 1});
ol.pointer.PointerEvent.HAS_BUTTONS = ev.buttons === 1; ol.pointer.PointerEvent.HAS_BUTTONS = ev.buttons === 1;
} catch (e) { } catch (e) {
// pass
} }
})(); })();

View File

@@ -38,6 +38,7 @@ ol.webgl.getContext = function(canvas, opt_attributes) {
return /** @type {!WebGLRenderingContext} */ (context); return /** @type {!WebGLRenderingContext} */ (context);
} }
} catch (e) { } catch (e) {
// pass
} }
} }
return null; return null;