mrdoob/three.js — pull request #3791 by erich666 (2013-08-22 01:48:07+00:00)
Title: Fix DOM width retrieval

See https://github.com/mrdoob/three.js/issues/3778#issuecomment-22919229

In Firefox the domElement.width can sometimes be undefined (when it's still defined in Chrome). This fix checks if it's undefined and, if so, uses domElement.body.clientWidth instead.