Skip to content

Commit 976826a

Browse files
petehuntzpao
authored andcommitted
Remove extraneous assert
1 parent 858fd2e commit 976826a

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/event/EventPluginHub.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -154,10 +154,6 @@ var EventPluginHub = {
154154
* @param {?function} listener The callback to store.
155155
*/
156156
putListener: function(id, registrationName, listener) {
157-
invariant(
158-
ExecutionEnvironment.canUseDOM,
159-
'Cannot call putListener() in a non-DOM environment.'
160-
);
161157
invariant(
162158
!listener || typeof listener === 'function',
163159
'Expected %s listener to be a function, instead got type %s',

0 commit comments

Comments
 (0)