mediawiki.notification: Document that #notify accepts HTMLElement[] too
authorBartosz Dziewoński <matma.rex@gmail.com>
Wed, 6 Aug 2014 22:53:55 +0000 (00:53 +0200)
committerBartosz Dziewoński <matma.rex@gmail.com>
Wed, 6 Aug 2014 22:55:14 +0000 (00:55 +0200)
Practical use case: mw.notify( $.parseHTML( … ) )

Change-Id: I6396e5d0fde0079e396286c2edad37d95a0578d8

resources/src/mediawiki/mediawiki.notification.js

index b5fd69c..79ec310 100644 (file)
                /**
                 * 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