From: Bartosz Dziewoński Date: Wed, 6 Aug 2014 22:53:55 +0000 (+0200) Subject: mediawiki.notification: Document that #notify accepts HTMLElement[] too X-Git-Tag: 1.31.0-rc.0~14553^2 X-Git-Url: https://git.cyclocoop.org/%27.%24link.%27?a=commitdiff_plain;h=05b695be2d12385a18d9b16b5d64a4c6eb77aca5;p=lhc%2Fweb%2Fwiklou.git mediawiki.notification: Document that #notify accepts HTMLElement[] too Practical use case: mw.notify( $.parseHTML( … ) ) Change-Id: I6396e5d0fde0079e396286c2edad37d95a0578d8 --- diff --git a/resources/src/mediawiki/mediawiki.notification.js b/resources/src/mediawiki/mediawiki.notification.js index b5fd69c307..79ec310671 100644 --- a/resources/src/mediawiki/mediawiki.notification.js +++ b/resources/src/mediawiki/mediawiki.notification.js @@ -440,7 +440,7 @@ /** * Display a notification message to the user. * - * @param {HTMLElement|jQuery|mw.Message|string} message + * @param {HTMLElement|HTMLElement[]|jQuery|mw.Message|string} message * @param {Object} options The options to use for the notification. * See #defaults for details. * @return {mw.Notification} Notification object