mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 17:05:56 +00:00
don't use declare() for static objects with no inheritance because apparently it's not actually needed by AMD
This commit is contained in:
@@ -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;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user