mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-25 04:24:45 -04:00
Clean code.
This commit is contained in:
parent
2479aa597b
commit
07ffb9d995
1 changed files with 1 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue