From 05b695be2d12385a18d9b16b5d64a4c6eb77aca5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bartosz=20Dziewo=C5=84ski?= Date: Thu, 7 Aug 2014 00:53:55 +0200 Subject: [PATCH] mediawiki.notification: Document that #notify accepts HTMLElement[] too MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Practical use case: mw.notify( $.parseHTML( … ) ) Change-Id: I6396e5d0fde0079e396286c2edad37d95a0578d8 --- resources/src/mediawiki/mediawiki.notification.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.20.1