mw.widgets.CategorySelector: Add client-side caching
authorPrateek Saxena <prtksxna@gmail.com>
Wed, 14 Sep 2016 12:15:11 +0000 (17:45 +0530)
committerPrateek Saxena <prtksxna@gmail.com>
Wed, 14 Sep 2016 12:15:32 +0000 (17:45 +0530)
commitde8409a758a0ee7aed460d7d7f4534ef4dc31473
treeab10c2b23e520bed072908d9cdb1a269ddaaa7bb
parent1193f402e3a70bb840f797cb82f62539207bbd05
mw.widgets.CategorySelector: Add client-side caching

The key in the cache hash is the string to be searched and
the number of the searchTypes appended as a string. This
feels a bit hacky but it'll do the job and doesn't seem
wrong.

Change-Id: Idfc931e825aaa30e00b57445d6c4afd67857609e
resources/src/mediawiki.widgets/mw.widgets.CategorySelector.js