There was an error while loading. Please reload this page.
1 parent 858fd2e commit 976826aCopy full SHA for 976826a
src/event/EventPluginHub.js
@@ -154,10 +154,6 @@ var EventPluginHub = {
154
* @param {?function} listener The callback to store.
155
*/
156
putListener: function(id, registrationName, listener) {
157
- invariant(
158
- ExecutionEnvironment.canUseDOM,
159
- 'Cannot call putListener() in a non-DOM environment.'
160
- );
161
invariant(
162
!listener || typeof listener === 'function',
163
'Expected %s listener to be a function, instead got type %s',
0 commit comments