mrdoob/three.js — pull request #5530 by blaise-io (2014-10-28 10:41:12+00:00)
Title: Properly detect webGL in example code in the CanvasRenderer documentation

WebGLRenderingContext may return a truthy value even though WebGL is disabled or when a graphics card is blacklisted. I took the check from Detector.js to properly detect for this and reformatted the code for readability.