"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "app/assets/javascripts/discourse/app/app.js" between
discourse-2.5.2.tar.gz and discourse-2.5.3.tar.gz

About: Discourse is a "next-generation" forum platform for community discussions.

app.js  (discourse-2.5.2):app.js  (discourse-2.5.3)
skipping to change at line 157 skipping to change at line 157
return init; return init;
}, },
// Start up the Discourse application by running all the initializers we've de fined. // Start up the Discourse application by running all the initializers we've de fined.
start() { start() {
$("noscript").remove(); $("noscript").remove();
Object.keys(requirejs._eak_seen).forEach(key => { Object.keys(requirejs._eak_seen).forEach(key => {
if (/\/pre\-initializers\//.test(key)) { if (/\/pre\-initializers\//.test(key)) {
this.initializer(this._prepareInitializer(key)); this.initializer(this._prepareInitializer(key));
} else if (/\/initializers\//.test(key)) { } else if (/\/(api\-)?initializers\//.test(key)) {
this.instanceInitializer(this._prepareInitializer(key)); this.instanceInitializer(this._prepareInitializer(key));
} }
}); });
// Plugins that are registered via `<script>` tags. // Plugins that are registered via `<script>` tags.
const withPluginApi = requirejs("discourse/lib/plugin-api").withPluginApi; const withPluginApi = requirejs("discourse/lib/plugin-api").withPluginApi;
let initCount = 0; let initCount = 0;
_pluginCallbacks.forEach(cb => { _pluginCallbacks.forEach(cb => {
this.instanceInitializer({ this.instanceInitializer({
name: `_discourse_plugin_${++initCount}`, name: `_discourse_plugin_${++initCount}`,
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)