From c54249c86834c00bc13a1672455c3fb955308c05 Mon Sep 17 00:00:00 2001 From: Benjy Cui Date: Thu, 18 Feb 2016 16:01:29 +0800 Subject: [PATCH] Update comments for EventPluginHub.js --- src/renderers/shared/event/EventPluginHub.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/renderers/shared/event/EventPluginHub.js b/src/renderers/shared/event/EventPluginHub.js index 8baf3e6a7a..270d1665d8 100644 --- a/src/renderers/shared/event/EventPluginHub.js +++ b/src/renderers/shared/event/EventPluginHub.js @@ -98,9 +98,9 @@ var EventPluginHub = { /** * Stores `listener` at `listenerBank[registrationName][id]`. Is idempotent. * - * @param {string} id ID of the DOM element. + * @param {object} inst The instance, which is the source of events. * @param {string} registrationName Name of listener (e.g. `onClick`). - * @param {?function} listener The callback to store. + * @param {function} listener The callback to store. */ putListener: function(inst, registrationName, listener) { invariant( @@ -121,7 +121,7 @@ var EventPluginHub = { }, /** - * @param {string} id ID of the DOM element. + * @param {object} inst The instance, which is the source of events. * @param {string} registrationName Name of listener (e.g. `onClick`). * @return {?function} The stored callback. */ @@ -133,7 +133,7 @@ var EventPluginHub = { /** * Deletes a listener from the registration bank. * - * @param {string} id ID of the DOM element. + * @param {object} inst The instance, which is the source of events. * @param {string} registrationName Name of listener (e.g. `onClick`). */ deleteListener: function(inst, registrationName) { @@ -153,7 +153,7 @@ var EventPluginHub = { /** * Deletes all listeners for the DOM element with the supplied ID. * - * @param {string} id ID of the DOM element. + * @param {object} inst The instance, which is the source of events. */ deleteAllListeners: function(inst) { for (var registrationName in listenerBank) {