Update comments for EventPluginHub.js
Benjy Cui committed
Feb 18, 2016 at 16:01 UTC
c54249c86834c00bc13a1672455c3fb955308c05
1 file changed
+5
-5
src/renderers/shared/event/EventPluginHub.js
+5
-5
@@ -98,9 +98,9 @@ var EventPluginHub = {
98
/**
99
* Stores `listener` at `listenerBank[registrationName][id]`. Is idempotent.
100
*
101
- * @param {string} id ID of the DOM element.
101
+ * @param {object} inst The instance, which is the source of events.
102
* @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.
104
*/
105
putListener: function(inst, registrationName, listener) {
106
invariant(
@@ -121,7 +121,7 @@ var EventPluginHub = {
121
},
122
123
/**
124
- * @param {string} id ID of the DOM element.
124
+ * @param {object} inst The instance, which is the source of events.
125
* @param {string} registrationName Name of listener (e.g. `onClick`).
126
* @return {?function} The stored callback.
127
*/
@@ -133,7 +133,7 @@ var EventPluginHub = {
133
/**
134
* Deletes a listener from the registration bank.
135
*
136
- * @param {string} id ID of the DOM element.
136
+ * @param {object} inst The instance, which is the source of events.
137
* @param {string} registrationName Name of listener (e.g. `onClick`).
138
*/
139
deleteListener: function(inst, registrationName) {
@@ -153,7 +153,7 @@ var EventPluginHub = {
153
/**
154
* Deletes all listeners for the DOM element with the supplied ID.
155
*
156
- * @param {string} id ID of the DOM element.
156
+ * @param {object} inst The instance, which is the source of events.
157
*/
158
deleteAllListeners: function(inst) {
159
for (var registrationName in listenerBank) {