mw.notification: fix error on notif. close with $.fx.off=true
authorMatmaRex <matma.rex@gmail.com>
Wed, 3 Oct 2012 17:33:05 +0000 (19:33 +0200)
committerMarius Hoch <hoo@online.de>
Wed, 3 Oct 2012 17:51:11 +0000 (19:51 +0200)
commit02e44d462fcf84da2104ea95f242c6bf08424c05
treec7b1553c32ff84544122d9266515a8a76c4ddaa9
parent2780eeb962e890e23cb56d157fa54e62eb22eff6
mw.notification: fix error on notif. close with $.fx.off=true

I didn't investigate why, but apparently $placeholder being defined
lexically after it is first used causes it to be null when it shouldn't
be, causing at least Opera to blow up. This only appears when $.fx.off is
set to true (to disable all jQuery animations; there's a gadget that does
this on pl.wikipedia).

Change-Id: If0aa6279515694ef20337ef02a05562c5543b2e2
resources/mediawiki/mediawiki.notification.js