This commit is contained in:
Kevin Ngo 2015-03-12 16:04:10 -07:00
Родитель 3d0751886a
Коммит b56a1e8c98
1 изменённых файлов: 6 добавлений и 5 удалений

Просмотреть файл

@ -1,4 +1,9 @@
console.log('Sample Commonplace App');
/*
The main file that initializes the app.
Only put initialization code in here. Everything else should go into
separate and appropriate modules. This is not your diaper.
*/
console.log('Firefox Marketplace App');
define('main', ['init'], function() {
require([
@ -14,8 +19,6 @@ require([
], function(forms, l10n, log, login, navigation, settings, user, z, nunjucks) {
var logger = log('main');
logger.log('Dependencies resolved, starting init');
z.body.addClass('html-' + l10n.getDirection());
// Do some last minute template compilation.
@ -37,9 +40,7 @@ require([
});
// Perform initial navigation.
logger.log('Triggering initial navigation');
z.page.trigger('navigate', [window.location.pathname + window.location.search]);
logger.log('Initialization complete');
});
});