szurubooru/public_html/js/Presenters/CommentListPresenter.js
Marcin Kurczewski 2bb20c49fd Removed {mangle: false} requirement to uglify-js
Improves solution to #4 for javasript files by 12K (in current build).
2014-10-18 18:48:21 +02:00

26 lines
494 B
JavaScript

var App = App || {};
App.Presenters = App.Presenters || {};
App.Presenters.CommentListPresenter = function(
jQuery,
topNavigationPresenter) {
var $el = jQuery('#content');
function init(args) {
topNavigationPresenter.select('comments');
render();
}
function render() {
$el.html('Comment list placeholder');
}
return {
init: init,
render: render,
};
};
App.DI.register('commentListPresenter', ['jQuery', 'topNavigationPresenter'], App.Presenters.CommentListPresenter);