-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only run the Ember.onload initializers in globals mode
- Loading branch information
Showing
6 changed files
with
80 additions
and
82 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
;(function() { | ||
/* globals Ember */ | ||
/* globals DS */ | ||
var K = Ember.K; | ||
Ember.onLoad('Ember.Application', function(Application) { | ||
|
||
Application.initializer({ | ||
name: "ember-data", | ||
initialize: DS._setupContainer | ||
}); | ||
|
||
Application.instanceInitializer({ | ||
name: "ember-data", | ||
initialize: DS._initializeStoreService | ||
}); | ||
|
||
// Deprecated initializers to satisfy old code that depended on them | ||
Application.initializer({ | ||
name: "store", | ||
after: "ember-data", | ||
initialize: K | ||
}); | ||
|
||
Application.initializer({ | ||
name: "transforms", | ||
before: "store", | ||
initialize: K | ||
}); | ||
|
||
Application.initializer({ | ||
name: "data-adapter", | ||
before: "store", | ||
initialize: K | ||
}); | ||
|
||
Application.initializer({ | ||
name: "injectStore", | ||
before: "store", | ||
initialize: K | ||
}); | ||
}); | ||
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters