mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-08-12 16:24:03 +02:00
Clean code.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user