emberjs/ember.js — pull request #1318 by joliss (2012-08-24 16:17:38+00:00)
Title: Add Application#reset

This is mostly useful for testing.

--------------------

As discussed with @wycats. Cc @twinturbo, he was interested in this too.

This is working great in my Konacha test suite.

Eventually it may be easier to allow for initialize being run more than once. I.e. initialize will simply reset the app if it's called a second time. Still, reset should be a good solution for now.

This pull request includes #1317. You may want to merge that first, because it's a pure cleanup patch.