diff --git a/addon/initializers/ember-parachute.js b/addon/initializers/ember-parachute.js index 5e0c15c..6f755e3 100644 --- a/addon/initializers/ember-parachute.js +++ b/addon/initializers/ember-parachute.js @@ -16,6 +16,10 @@ const { } = Object; export function initialize(/* application */) { + if (Ember.Route._didInitializeParachute) { + return; + } + Ember.Route.reopen({ /** * Setup the route's `queryParams` map and call the `setup` hook @@ -176,6 +180,8 @@ export function initialize(/* application */) { } } }); + + Ember.Route.reopenClass({ _didInitializeParachute: true }) } export default {