Merge pull request #444 from fauxton/remove_initializer_deprecations

Remove initializer deprecation warnings
This commit is contained in:
Piotr Sarnacki 2016-02-01 10:37:30 +01:00
commit 620632500b
10 changed files with 9 additions and 10 deletions

View File

@ -1,7 +1,7 @@
// Generated by CoffeeScript 1.10.0
var Initializer, initialize;
initialize = function(container, app) {
initialize = function(app) {
if (typeof window !== 'undefined') {
return window.Travis = app;
}

View File

@ -2,7 +2,7 @@
import TestAuth from 'travis/utils/test-auth';
var AuthInitializer, initialize;
initialize = function(container, app) {
initialize = function(app) {
app.inject('route', 'auth', 'service:auth');
app.inject('controller', 'auth', 'service:auth');
app.inject('application', 'auth', 'service:auth');

View File

@ -2,7 +2,7 @@
import config from 'travis/config/environment';
var ConfigInitializer, initialize;
initialize = function(container, application) {
initialize = function(application) {
application.register('config:main', config, {
instantiate: false
});

View File

@ -2,7 +2,7 @@
import config from 'travis/config/environment';
var GAInitializer, initialize;
initialize = function(container) {
initialize = function(application) {
var ga, s;
if (config.gaCode) {
window._gaq = [];

View File

@ -2,7 +2,7 @@
import TravisLocation from 'travis/utils/location';
var Initializer, initialize;
initialize = function(container, application) {
initialize = function(application) {
return application.register('location:travis', TravisLocation);
};

View File

@ -3,7 +3,7 @@ import config from 'travis/config/environment';
import TravisPusher from 'travis/utils/pusher';
var PusherInitializer, initialize;
initialize = function(registry, application) {
initialize = function(application) {
return null;
};

View File

@ -4,7 +4,7 @@ import ToTop from 'travis/utils/to-top';
import config from 'travis/config/environment';
var Initializer, initialize;
initialize = function(container, application) {
initialize = function(application) {
application.tailing = new Tailing($(window), '#tail', '#log');
return application.toTop = new ToTop($(window), '.to-top', '#log-container');
};

View File

@ -11,7 +11,7 @@ stylesheetsManager = Ember.Object.create({
}
});
initialize = function(container, application) {
initialize = function(application) {
application.register('stylesheetsManager:main', stylesheetsManager, {
instantiate: false
});

View File

@ -2,7 +2,7 @@
import config from 'travis/config/environment';
var UserlikeInitializer, initialize;
initialize = function(container) {
initialize = function(application) {
var userlikeData;
return userlikeData = {};
};

View File

@ -24,7 +24,6 @@ window.deprecationWorkflow.config = {
{ handler: "log", matchMessage: "Ember.View is deprecated. Consult the Deprecations Guide for a migration strategy." },
// TODO
{ handler: "silence", matchMessage: new RegExp("The `initialize` method for Application initializer .*? should take only one argument - `App`, an instance of an `Application`.") },
{ handler: "silence", matchMessage: "Using `ApplicationInstance.container.lookup` is deprecated. Please use `ApplicationInstance.lookup` instead." },
{ handler: "silence", matchMessage: "this.resource() is deprecated. Use this.route('name', { resetNamespace: true }, function () {}) instead." },
{ handler: "silence", matchMessage: new RegExp("the component:.*? test module is implicitly running in unit test mode, which will change to integration test mode by default in an upcoming version of ember-test-helpers. Add `unit: true` or a `needs:[]` list to explicitly opt in to unit test mode.") },