export default Ember.Mixin.create({
  willComplete: function() {
    Em.RSVP.resolve();
  },
  actions: {
    didTransition: function() {
      var promises = [];
      var currentHandlerInfos = this.router.get('router.currentHandlerInfos');
      for (var i = 0; i < currentHandlerInfos.length; i++) {
        if (currentHandlerInfos[i].handler.willComplete) {
          promises.push(currentHandlerInfos[i].handler.willComplete());
        }
      }
      Ember.RSVP.all(promises).then(App.prerenderReady);
    }
  }
});

@@ -64,16 +64,19 @@
 %7B%0A    Em
+ber
 .RSVP.re

Update ember-prerender.js