diff --git a/isso/js/app/isso.js b/isso/js/app/isso.js index 8ab7c3e..db06d40 100644 --- a/isso/js/app/isso.js +++ b/isso/js/app/isso.js @@ -1,7 +1,7 @@ /* Isso – Ich schrei sonst! */ -define(["app/text/html", "app/dom", "app/utils", "app/config", "app/api", "app/markup", "app/i18n", "app/lib", "app/fancy"], - function(templates, $, utils, config, api, Mark, i18n, lib, fancy) { +define(["app/text/html", "app/dom", "app/utils", "app/config", "app/api", "app/markup", "app/i18n", "app/lib"], + function(templates, $, utils, config, api, Mark, i18n, lib) { "use strict"; @@ -80,7 +80,7 @@ define(["app/text/html", "app/dom", "app/utils", "app/config", "app/api", "app/m }); // copy'n'paste sluggy automagically dynamic textarea resize - fancy.autoresize($("textarea", el), 48); + lib.fancy.autoresize($("textarea", el), 48); return el; }; @@ -198,7 +198,7 @@ define(["app/text/html", "app/dom", "app/utils", "app/config", "app/api", "app/m api.view(comment.id, 1).then(function(rv) { var textarea = $.new("textarea", rv.text); - fancy.autoresize(textarea, 48); + lib.fancy.autoresize(textarea, 48); text.className = "textarea-wrapper"; text.textContent = ""; text.append(textarea); diff --git a/isso/js/app/lib.js b/isso/js/app/lib.js index 10bdab2..e452048 100644 --- a/isso/js/app/lib.js +++ b/isso/js/app/lib.js @@ -1,7 +1,8 @@ define(function (require) { return { + fancy: require("app/lib/fancy"), identicons: require("app/lib/identicons"), pbkdf2: require("app/lib/pbkdf2"), sha1: require("app/lib/sha1") }; -}); \ No newline at end of file +}); diff --git a/isso/js/app/fancy.js b/isso/js/app/lib/fancy.js similarity index 100% rename from isso/js/app/fancy.js rename to isso/js/app/lib/fancy.js