Uncaught TypeError: Cannot read property 'recognizer' of null


#1

The following piece of code works in ember 1.9 and 1.10, but in 1.11.beta, it says:

Uncaught TypeError: Cannot read property ‘recognizer’ of null

Ember.Application.initializer({
  name: 'abc',

  initialize: function(container, application) {
    Ember.keys(application.Router.router.recognizer.names).forEach(function(name) {
        
    });
  }
});