raphinesse commented on a change in pull request #245:
URL: https://github.com/apache/cordova-js/pull/245#discussion_r802914372



##########
File path: src/cordova.js
##########
@@ -44,7 +44,7 @@ var documentEventHandlers = {};
 var windowEventHandlers = {};
 
 document.addEventListener = function (evt, handler, capture) {
-    var e = evt.toLowerCase();
+    var e = typeof evt === 'string' ? evt.toLowerCase() : evt;

Review comment:
       ```suggestion
       var e = String(evt).toLowerCase();
   ```
   
   Nit: Maybe that would be even more straightforward. What do you think, 
@jpike88?




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to