Skip to content

Commit

Permalink
Remove extraneous assert
Browse files Browse the repository at this point in the history
  • Loading branch information
petehunt authored and zpao committed Mar 27, 2014
1 parent 858fd2e commit 976826a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/event/EventPluginHub.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,6 @@ var EventPluginHub = {
* @param {?function} listener The callback to store.
*/
putListener: function(id, registrationName, listener) {
invariant(
ExecutionEnvironment.canUseDOM,
'Cannot call putListener() in a non-DOM environment.'
);
invariant(
!listener || typeof listener === 'function',
'Expected %s listener to be a function, instead got type %s',
Expand Down

0 comments on commit 976826a

Please sign in to comment.