Skip to content
This repository was archived by the owner on May 17, 2021. It is now read-only.

Commit 5d63b3d

Browse files
committed
Removed useless comment and improved module check.
Now it checks if module is an object, and not !undefined.
1 parent f905256 commit 5d63b3d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

EventEmitter.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
*/
77

88
(function () {
9-
// Place the script in strict mode
109
'use strict';
1110

1211
/**
@@ -441,7 +440,7 @@
441440
return EventEmitter;
442441
});
443442
}
444-
else if (typeof module !== 'undefined' && module.exports){
443+
else if (typeof module === 'object' && module.exports){
445444
module.exports = EventEmitter;
446445
}
447446
else {

0 commit comments

Comments
 (0)