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