Clean code.

This commit is contained in:
Lars Jung 2015-04-29 23:13:51 +02:00
parent 2479aa597b
commit 07ffb9d995

View file

@ -1,6 +1,6 @@
modulejs.define('view/notification', ['$', 'view/root'], function ($, root) { modulejs.define('view/notification', ['$', 'view/root'], function ($, root) {
var $el = $('<div id="notification"/>'); var $el = $('<div id="notification"/>').hide().appendTo(root.$el);
function set(content) { function set(content) {
@ -11,8 +11,6 @@ modulejs.define('view/notification', ['$', 'view/root'], function ($, root) {
} }
} }
$el.hide().appendTo(root.$el);
return { return {
$el: $el, $el: $el,
set: set set: set