Gallery: Don't fire wikipage.content hook twice during init
authorEd Sanders <esanders@wikimedia.org>
Fri, 20 Sep 2019 12:22:04 +0000 (13:22 +0100)
committerEd Sanders <esanders@wikimedia.org>
Fri, 20 Sep 2019 12:22:04 +0000 (13:22 +0100)
commite75a8edd8cddf18b5e8a755a95f5c014b45f06d2
tree68edd4ae1ad07efcc0fd6ba7e284fd0ff00bc6d9
parenta99171228d167224e376cf584739daf624ebaf71
Gallery: Don't fire wikipage.content hook twice during init

We know the hook has already been fired once, because we listen
to it to start the gallery.

Firing it again here can cause other listeners to fail as only
the last-fired argument is stored.

Bug: T233401
Change-Id: I32ca866964c7a1f644a3cc28d636ec1430b8ef58
resources/src/mediawiki.page.gallery.slideshow.js