@samitouri / QOS-React-2 / commits / 976826aec0

Remove extraneous assert

Pete Hunt committed Mar 27, 2014 at 13:17 UTC 976826aec0930b0c316837fe3ec14c4a13e43507
1 file changed -4
src/event/EventPluginHub.js
-4
@@ -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 - );
157 invariant(
158 !listener || typeof listener === 'function',
159 'Expected %s listener to be a function, instead got type %s',