rh389 0a55e42ef6 Refactor MessageQueue
Summary:
Looking to address a few new `FlowFixMe`s I had to do some minor refactoring of `MessageQueue`. Has the advantage of (IMO) making things clearer by removing a redundant counter and some gratuitous bitwise operations.

Previously `_callbacks` was an array of `?Function`s where even elements were failure callbacks and odd elements were successes. Each new call incremented `_callID` by one and `_callbackID` by two. I've changed this to use two arrays `_successCallbacks` and `_failureCallbacks` indexed by `callID`. That made the `_callbackID` counter unnecessary and reduced the need for computed indices.

Tested with flow and a quick play with UIExplorer.
Closes https://github.com/facebook/react-native/pull/11986

Differential Revision: D4962162

Pulled By: javache

fbshipit-source-id: 17dddfedc0cb5950dbdd9bd06fae6eb6de4c4a7d
2017-04-28 04:04:14 -07:00
..
2017-04-18 14:00:18 -07:00
2017-02-21 09:11:01 -08:00
2017-04-28 04:04:14 -07:00
2017-04-05 18:31:06 -07:00
2017-04-21 03:15:17 -07:00
2017-03-28 08:38:13 -07:00
2016-11-02 12:29:15 -07:00
2017-04-05 18:31:06 -07:00
2017-04-26 04:00:09 -07:00
2017-01-31 11:13:50 -08:00
2017-04-26 11:31:56 -07:00
2017-02-21 15:18:40 -08:00
2017-04-26 11:31:56 -07:00
2017-03-21 08:01:58 -07:00
2017-04-17 07:30:18 -07:00