Clean code.

This commit is contained in:
Lars Jung 2015-04-29 23:11:45 +02:00
parent 8c34337136
commit 2479aa597b
3 changed files with 4 additions and 6 deletions

View file

@ -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
}; };
}); });

View file

@ -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

View file

@ -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) {