mirror of
https://github.com/discourse/discourse.git
synced 2025-09-07 12:02:53 +08:00
Many Plugin upgrades.
This commit is contained in:
parent
a644947119
commit
3f9c4100ef
10 changed files with 194 additions and 116 deletions
|
@ -117,12 +117,12 @@ window.Discourse = Ember.Application.createWithMixins(Discourse.Ajax, {
|
|||
start: function() {
|
||||
|
||||
// Load any ES6 initializers
|
||||
Ember.keys(requirejs._eak_seen).filter(function(key) {
|
||||
return (/\/initializers\//).test(key);
|
||||
}).forEach(function(moduleName) {
|
||||
var module = require(moduleName, null, null, true);
|
||||
if (!module) { throw new Error(moduleName + ' must export an initializer.'); }
|
||||
Discourse.initializer(module.default);
|
||||
Ember.keys(requirejs._eak_seen).forEach(function(key) {
|
||||
if (/\/initializers\//.test(key)) {
|
||||
var module = require(key, null, null, true);
|
||||
if (!module) { throw new Error(key + ' must export an initializer.'); }
|
||||
Discourse.initializer(module.default);
|
||||
}
|
||||
});
|
||||
|
||||
var initializers = this.initializers;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue