emberjs/ember.js — pull request #4819 by wholcomb (2014-05-06 14:26:39+00:00)
Title: loading when window and document are undefined

The code handled this situation 99% of the time, but there were a couple checks that needed to be added.