mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-29 14:35:18 -04:00
Clean code.
This commit is contained in:
parent
8c34337136
commit
2479aa597b
3 changed files with 4 additions and 6 deletions
|
@ -1,8 +1,8 @@
|
||||||
modulejs.define('view/content', ['$', 'view/mainrow'], function ($, mainrow) {
|
modulejs.define('view/content', ['$', 'view/mainrow'], function ($, mainrow) {
|
||||||
|
|
||||||
var $content = $('<div id="content"/>').appendTo(mainrow.$el);
|
var $el = $('<div id="content"/>').appendTo(mainrow.$el);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
$el: $content
|
$el: $el
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
modulejs.define('view/mainrow', ['$', 'view/root'], function ($, root) {
|
modulejs.define('view/mainrow', ['$', 'view/root'], function ($, root) {
|
||||||
|
|
||||||
var template = '<div id="mainrow"/>';
|
var $el = $('<div id="mainrow"/>').appendTo(root.$el);
|
||||||
var $el = $(template).appendTo(root.$el);
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
$el: $el
|
$el: $el
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
modulejs.define('view/notification', ['$', 'view/root'], function ($, root) {
|
modulejs.define('view/notification', ['$', 'view/root'], function ($, root) {
|
||||||
|
|
||||||
var template = '<div id="notification"/>';
|
var $el = $('<div id="notification"/>');
|
||||||
var $el = $(template);
|
|
||||||
|
|
||||||
function set(content) {
|
function set(content) {
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue