tcoulter/jockeyjs — pull request #20 by shaunnez (2014-03-19 11:49:55+00:00)
Title: Fix JockeyJS for Android - AndroidDispatcher not needed

AndroidDispatcher never completed - isn't actually needed.
iOSDispatcher works for both android and ios.
AndroidDispatcher was written to be seperate as on android it can't handle listening to jockey://... protocol.
This is handled however in one of the java jockey files for android, checks the url to see if it contains the protocol and replaces with http:// I believe.

This refactor simple renames iOSDispatcher to Dispatcher, remove AndroidDispatcher, and at the bottom of the file checks to see if it's an iOS device OR android, then sets the Jockey.dispatcher to Dispatcher.
If it's a desktop browser, still uses nullDispatcher (for testing purposes)