From a05bafed6af9e66fef7012272d138db39926073a Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Wed, 14 Jun 2017 22:37:28 +0100 Subject: [PATCH] Remove sarcastic comments ... apparently I wrote them, and I don't understand them. There is *supposed* to be a global flux dispatcher. This reverts commit c0de0870ed3f3262b55e6d2057c934ef867cded8. --- src/dispatcher.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/dispatcher.js b/src/dispatcher.js index f3ebed8357..be74dc856e 100644 --- a/src/dispatcher.js +++ b/src/dispatcher.js @@ -41,9 +41,6 @@ class MatrixDispatcher extends flux.Dispatcher { } } -// XXX this is a big anti-pattern, and makes testing hard. Because dispatches -// happen asynchronously, it is possible for actions dispatched in one thread -// to arrive in another, with *hilarious* consequences. if (global.mxDispatcher === undefined) { global.mxDispatcher = new MatrixDispatcher(); }