Skip to content

Commit e8e931f

Browse files
committed
revise conditional statement for commonjs;
current conditional statement allows the else statemtent to execute even if the first if statement is true in certain race confitions;
1 parent 79e2275 commit e8e931f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jquery.timeago.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
if (typeof define === 'function' && define.amd) {
1919
// AMD. Register as an anonymous module.
2020
define(['jquery'], factory);
21-
} if (typeof module === 'object' && typeof module.exports === 'object') {
21+
} else if (typeof module === 'object' && typeof module.exports === 'object') {
2222
factory(require('jquery'));
2323
} else {
2424
// Browser globals

0 commit comments

Comments
 (0)