Commit fb2e5e27 authored by JC Brand's avatar JC Brand

Let the utils work without Jed available.

parent 9d104f17
......@@ -4,10 +4,9 @@
"jquery",
"jquery.browser",
"underscore",
"jed",
"converse-templates"
], factory);
}(this, function ($, dummy, _, Jed, templates) {
}(this, function ($, dummy, _, templates) {
"use strict";
var XFORM_TYPE_MAP = {
......@@ -92,6 +91,9 @@
// Translation machinery
// ---------------------
__: function (str) {
if (typeof Jed === "undefined") {
return str;
}
// FIXME: this can be refactored to take the i18n obj as a
// parameter.
// 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