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 c0de0870ed.
pull/21833/head
Richard van der Hoff 2017-06-14 22:37:28 +01:00
parent 8840625045
commit a05bafed6a
1 changed files with 0 additions and 3 deletions

View File

@ -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) { if (global.mxDispatcher === undefined) {
global.mxDispatcher = new MatrixDispatcher(); global.mxDispatcher = new MatrixDispatcher();
} }