Commit fb2e5e27 authored by JC Brand's avatar JC Brand

Let the utils work without Jed available.

parent 9d104f17
...@@ -4,10 +4,9 @@ ...@@ -4,10 +4,9 @@
"jquery", "jquery",
"jquery.browser", "jquery.browser",
"underscore", "underscore",
"jed",
"converse-templates" "converse-templates"
], factory); ], factory);
}(this, function ($, dummy, _, Jed, templates) { }(this, function ($, dummy, _, templates) {
"use strict"; "use strict";
var XFORM_TYPE_MAP = { var XFORM_TYPE_MAP = {
...@@ -92,6 +91,9 @@ ...@@ -92,6 +91,9 @@
// Translation machinery // Translation machinery
// --------------------- // ---------------------
__: function (str) { __: function (str) {
if (typeof Jed === "undefined") {
return str;
}
// FIXME: this can be refactored to take the i18n obj as a // FIXME: this can be refactored to take the i18n obj as a
// parameter. // parameter.
// Translation factory // Translation factory
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment