import Coordinator from '../models/coordinator';

export default {
  name: "setup coordinator",

  initialize: function(container,app) {
    app.register("drag:coordinator",Coordinator);
    app.inject("component","coordinator","drag:coordinator");
  }
};
import Coordinator from '../models/coordinator';

export default {
  name: "setup coordinator",

  initialize: function() {
    let app = arguments[1] || arguments[0];
    app.register("drag:coordinator",Coordinator);
    app.inject("component","coordinator","drag:coordinator");
  }
};

Remove Ember 2.1 deprecation warning
Remove Ember 2.1 deprecation warning

Updates the initializer to remove the deprecation warning in Ember 2.1 caused by having two arguments (container, app) in the initialize function. This uses the backwards compatible safe method described in the deprecation pages (http://emberjs.com/deprecations/v2.x/#toc_initializer-arity)