Switch to ghu and eslint.

This commit is contained in:
Lars Jung 2015-11-18 17:27:16 +01:00
parent 5d0770ca36
commit 0c6143704a
67 changed files with 192 additions and 307 deletions

View file

@ -0,0 +1,18 @@
modulejs.define('view/notification', ['$', 'view/root'], function ($, root) {
var $el = $('<div id="notification"/>').hide().appendTo(root.$el);
function set(content) {
if (content) {
$el.stop(true, true).html(content).fadeIn(400);
} else {
$el.stop(true, true).fadeOut(400);
}
}
return {
$el: $el,
set: set
};
});