mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-09-25 03:09:37 +00:00
Merge "jscs: Enable checkParamNames and make pass"
This commit is contained in:
commit
d91612014a
1
.jscsrc
1
.jscsrc
|
@ -10,6 +10,7 @@
|
|||
},
|
||||
"requireParamTypes": true,
|
||||
"checkReturnTypes": true,
|
||||
"checkParamNames": true,
|
||||
"checkTypes": "strictNativeCase",
|
||||
"requireReturnTypes": true,
|
||||
"checkRedundantAccess": true,
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
/**
|
||||
* Fetch notifications from the server based on type
|
||||
*
|
||||
* @param {string} types An array of notification types to fetch: 'alert', 'message', 'all'
|
||||
* @param {string} type Notification type to fetch: 'alert', 'message', or 'all'
|
||||
* @param {string} [source="local"] The source from which to fetch the notifications
|
||||
* @param {boolean} [isForced] Force a refresh on the fetch notifications promise
|
||||
* @return {jQuery.Promise} Promise that is resolved with all notifications for the
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
* @extends OO.ui.OptionWidget
|
||||
*
|
||||
* @constructor
|
||||
* @param {mw.echo.dm.NotificationItem} model Notification item model
|
||||
* @param {Object} [config] Configuration object
|
||||
* @cfg {boolean} [markReadWhenSeen=false] This option is marked as read when it is viewed
|
||||
* @cfg {jQuery} [$overlay] A jQuery element functioning as an overlay
|
||||
|
|
|
@ -98,7 +98,7 @@
|
|||
/**
|
||||
* Respond to model add event
|
||||
*
|
||||
* @param {mw.echo.dm.NotificationItem} Added notification item
|
||||
* @param {mw.echo.dm.NotificationItem} notificationItem Added notification item
|
||||
* @param {number} index Index to add the item
|
||||
*/
|
||||
mw.echo.ui.NotificationsWidget.prototype.onModelNotificationAdd = function ( notificationItem, index ) {
|
||||
|
|
Loading…
Reference in a new issue