summaryrefslogtreecommitdiff
path: root/js/CommonDialogs.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2020-06-04 19:50:13 +0300
committerAndrew Dolgov <[email protected]>2020-06-04 19:50:13 +0300
commite37f8cfa7817bb4d9f7330838542666b74e52b94 (patch)
treed90c2f76ea70d928a5d751bad9263b20d47d39b1 /js/CommonDialogs.js
parent06cc6e3a2a042c5c4ccee136f3365eabee5376a7 (diff)
don't use declare() for static objects with no inheritance because apparently it's not actually needed by AMD
Diffstat (limited to 'js/CommonDialogs.js')
-rw-r--r--js/CommonDialogs.js8
1 files changed, 2 insertions, 6 deletions
diff --git a/js/CommonDialogs.js b/js/CommonDialogs.js
index c6d476de0..16e390302 100644
--- a/js/CommonDialogs.js
+++ b/js/CommonDialogs.js
@@ -1,8 +1,7 @@
'use strict'
/* global __, ngettext */
-define(["dojo/_base/declare"], function (declare) {
- // noinspection JSUnusedGlobalSymbols
- CommonDialogs = {
+// noinspection JSUnusedGlobalSymbols
+const CommonDialogs = {
closeInfoBox: function() {
const dialog = dijit.byId("infoBox");
if (dialog) dialog.hide();
@@ -478,6 +477,3 @@ define(["dojo/_base/declare"], function (declare) {
return false;
}
};
-
- return CommonDialogs;
-});