Some sarcastic comments

pull/21833/head
Richard van der Hoff 2017-01-24 13:31:52 +00:00
父節點 e18a6151e4
當前提交 c0de0870ed
共有 1 個檔案被更改,包括 3 行新增0 行删除

查看文件

@ -42,6 +42,9 @@ 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();
}