marijnh/CodeMirror — pull request #2492 by iamcal (2014-04-22 19:58:24+00:00)
Title: check getBoundingClientRect() did not return null

Sometimes in Safari range.getBoundingClientRect() is null - this seems to occur when the editor is not in a visible portion of the DOM. Using nullRect fixes the null ref error, and does not seem to have any adverse effects.