diff options
author | Andrew Dolgov <[email protected]> | 2020-06-04 19:50:13 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2020-06-04 19:50:13 +0300 |
commit | e37f8cfa7817bb4d9f7330838542666b74e52b94 (patch) | |
tree | d90c2f76ea70d928a5d751bad9263b20d47d39b1 /js/CommonDialogs.js | |
parent | 06cc6e3a2a042c5c4ccee136f3365eabee5376a7 (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.js | 8 |
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; -}); |