Skip to content

Commit 6454bfb

Browse files
committed
Merge pull request #6065 from benjycui/fix-comments
Update comments for EventPluginHub.js
2 parents e8e56e8 + c54249c commit 6454bfb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/renderers/shared/event/EventPluginHub.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,9 @@ var EventPluginHub = {
9898
/**
9999
* Stores `listener` at `listenerBank[registrationName][id]`. Is idempotent.
100100
*
101-
* @param {string} id ID of the DOM element.
101+
* @param {object} inst The instance, which is the source of events.
102102
* @param {string} registrationName Name of listener (e.g. `onClick`).
103-
* @param {?function} listener The callback to store.
103+
* @param {function} listener The callback to store.
104104
*/
105105
putListener: function(inst, registrationName, listener) {
106106
invariant(
@@ -121,7 +121,7 @@ var EventPluginHub = {
121121
},
122122

123123
/**
124-
* @param {string} id ID of the DOM element.
124+
* @param {object} inst The instance, which is the source of events.
125125
* @param {string} registrationName Name of listener (e.g. `onClick`).
126126
* @return {?function} The stored callback.
127127
*/
@@ -133,7 +133,7 @@ var EventPluginHub = {
133133
/**
134134
* Deletes a listener from the registration bank.
135135
*
136-
* @param {string} id ID of the DOM element.
136+
* @param {object} inst The instance, which is the source of events.
137137
* @param {string} registrationName Name of listener (e.g. `onClick`).
138138
*/
139139
deleteListener: function(inst, registrationName) {
@@ -153,7 +153,7 @@ var EventPluginHub = {
153153
/**
154154
* Deletes all listeners for the DOM element with the supplied ID.
155155
*
156-
* @param {string} id ID of the DOM element.
156+
* @param {object} inst The instance, which is the source of events.
157157
*/
158158
deleteAllListeners: function(inst) {
159159
for (var registrationName in listenerBank) {

0 commit comments

Comments
 (0)