Clean code.
This commit is contained in:
parent
2479aa597b
commit
07ffb9d995
@ -1,6 +1,6 @@
|
||||
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) {
|
||||
|
||||
@ -11,8 +11,6 @@ modulejs.define('view/notification', ['$', 'view/root'], function ($, root) {
|
||||
}
|
||||
}
|
||||
|
||||
$el.hide().appendTo(root.$el);
|
||||
|
||||
return {
|
||||
$el: $el,
|
||||
set: set
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user