Rather than upsert module store, explicitly remove old value and then add new one
authorOri Livneh <ori@wikimedia.org>
Tue, 12 Nov 2013 19:19:57 +0000 (11:19 -0800)
committerOri Livneh <ori@wikimedia.org>
Tue, 12 Nov 2013 19:19:57 +0000 (11:19 -0800)
commitfbf0c812711a22bfbddf52ee69f052cd46d515f8
tree23a03c3384ee3ec66f2b9be5b0302add40e5a325
parente1855cf67c267d4613b6875a036d4ae8b65ef5aa
Rather than upsert module store, explicitly remove old value and then add new one

Replacing the content of the module store might fail if the new contents would
exceed the browser's localStorage size limit. To avoid clogging the browser
with stale data, always remove the old value before attempting to set the new
one.

Change-Id: I91d01d845a1a633414b94cc02e142a9956955c9d
resources/mediawiki/mediawiki.js