Merge "jscs: Enable checkParamNames and make pass"

This commit is contained in:
jenkins-bot 2016-03-25 20:37:02 +00:00 committed by Gerrit Code Review
commit d91612014a
4 changed files with 4 additions and 2 deletions

View file

@ -10,6 +10,7 @@
},
"requireParamTypes": true,
"checkReturnTypes": true,
"checkParamNames": true,
"checkTypes": "strictNativeCase",
"requireReturnTypes": true,
"checkRedundantAccess": true,

View file

@ -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

View file

@ -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

View file

@ -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 ) {