emberjs/ember.js — pull request #769 by viatropos (2012-05-01 20:37:23+00:00)
Title: Node support: added Ember.ROOT == window or global or this.

Added Ember.ROOT, equal to `window` if defined, `global` if defined, otherwise `this`. Added var ROOT = Ember.ROOT in relevant modules to optimize minification.

This makes it work in nodes. All tests still pass (running `rake test[all]` and `rake test`).