From 84affc7b1d71769038dfd25d74e40d6bf744e5fb Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 3 Dec 2018 09:33:44 +0300 Subject: rework dojo singleton modules to better work with phpstorm completion (ugh) - declare() is not needed there anyway remove event.observe from login form (not needed) load pluginhost via amd --- js/tt-rss.js | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'js/tt-rss.js') diff --git a/js/tt-rss.js b/js/tt-rss.js index 446c6393b..78ef10067 100644 --- a/js/tt-rss.js +++ b/js/tt-rss.js @@ -8,6 +8,7 @@ let Feeds; let Headlines; let Article; let ArticleCache; +let PluginHost; require(["dojo/_base/kernel", "dojo/_base/declare", @@ -45,8 +46,9 @@ require(["dojo/_base/kernel", "dijit/tree/dndSource", "dijit/tree/ForestStoreModel", "dojo/data/ItemFileWriteStore", - "fox/CommonDialogs", + "fox/PluginHost", "fox/CommonFilters", + "fox/CommonDialogs", "fox/Feeds", "fox/Headlines", "fox/Article", @@ -65,13 +67,6 @@ require(["dojo/_base/kernel", report_error(message, filename, lineno, colno, error); }; - CommonDialogs = fox.CommonDialogs(); - Filters = fox.CommonFilters(); - Feeds = fox.Feeds(); - Headlines = fox.Headlines(); - Article = fox.Article(); - ArticleCache = fox.ArticleCache(); - parser.parse(); if (!this.genericSanityCheck()) -- cgit v1.2.3