Introduce mediawiki.router for handling hash fragment navigation
authorjdlrobson <jdlrobson@gmail.com>
Thu, 24 Dec 2015 18:05:00 +0000 (10:05 -0800)
committerJames D. Forrester <jforrester@wikimedia.org>
Thu, 5 May 2016 19:34:53 +0000 (15:34 -0400)
commit7bacc11bd7b40a761f42d6634c3ffdd1a8849086
tree002dac604cc05cc64297e9d847d3f379859c4927
parent358f20218c36bc77f10dbea81ad43454762ace8a
Introduce mediawiki.router for handling hash fragment navigation

Add a generic barebones Router class to core to allow registration of
routes in a central place and deal with potential clashes in future.

See patches making use of the router:
- Kartographer extension I456a4582a67e31533d51d5817d0f4af57528c35e
- mediawiki.special.preference If7cb76e362464943df20598bd09fd341574756c4

Bug: T114007
Change-Id: I4295db446eac7cf24a3ed89edfa9eefa5cb34b73
resources/Resources.php
resources/lib/oojs-router/AUTHORS.txt [new file with mode: 0644]
resources/lib/oojs-router/LICENSE-MIT [new file with mode: 0644]
resources/lib/oojs-router/oojs-router.js [new file with mode: 0644]
resources/src/mediawiki.router/index.js [new file with mode: 0644]