Remove initializer deprecation warnings
The previous initializer API was deprecated in Ember 2.1 (See http://emberjs.com/deprecations/v2.x/), so this updates the initializer signatures to accomodate that change. Also, remove the registered deprecation from the workflow.
This commit is contained in:
parent
4b9d9fda1e
commit
92896aa8e1
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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');
|
||||
|
|
|
@ -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
|
||||
});
|
||||
|
|
|
@ -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 = [];
|
||||
|
|
|
@ -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);
|
||||
};
|
||||
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
|
@ -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');
|
||||
};
|
||||
|
|
|
@ -11,7 +11,7 @@ stylesheetsManager = Ember.Object.create({
|
|||
}
|
||||
});
|
||||
|
||||
initialize = function(container, application) {
|
||||
initialize = function(application) {
|
||||
application.register('stylesheetsManager:main', stylesheetsManager, {
|
||||
instantiate: false
|
||||
});
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
import config from 'travis/config/environment';
|
||||
var UserlikeInitializer, initialize;
|
||||
|
||||
initialize = function(container) {
|
||||
initialize = function(application) {
|
||||
var userlikeData;
|
||||
return userlikeData = {};
|
||||
};
|
||||
|
|
|
@ -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.") },
|
||||
|
|
Loading…
Reference in New Issue
Block a user