From 07ffb9d995196d3c052aec3b933ffebc1570f9b4 Mon Sep 17 00:00:00 2001 From: Lars Jung Date: Wed, 29 Apr 2015 23:13:51 +0200 Subject: [PATCH] Clean code. --- src/_h5ai/client/js/inc/view/notification.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/_h5ai/client/js/inc/view/notification.js b/src/_h5ai/client/js/inc/view/notification.js index 3e4d33ba..87a0e38b 100644 --- a/src/_h5ai/client/js/inc/view/notification.js +++ b/src/_h5ai/client/js/inc/view/notification.js @@ -1,6 +1,6 @@ modulejs.define('view/notification', ['$', 'view/root'], function ($, root) { - var $el = $('
'); + var $el = $('
').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