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