Dependencies on MediaWiki:Gadgets-definition sometimes don't update properly. I've encountered this at least twice. When this happens, completely removing and adding back the definition works. Here are the two examples:
On 14 December 2016 00:05, I removed jquery.ui.dialog as a dependency (https://sv.wikipedia.org/w/index.php?title=MediaWiki:Gadgets-definition&diff=38413998) but the gadget was still using it half an hour later and I removed the definition entirely 00:37 (https://sv.wikipedia.org/w/index.php?title=MediaWiki:Gadgets-definition&diff=38414035). When I added it back everything worked as expected.
Same thing happened today. I replaced mediawiki.api with mediawiki.api.edit (https://sv.wikipedia.org/w/index.php?title=MediaWiki:Gadgets-definition&diff=38808577) and half an hour later it still hasn't updated, so I remove the definition entirely (https://sv.wikipedia.org/w/index.php?title=MediaWiki:Gadgets-definition&diff=38808599). When I added it back everything worked as expected.