Skip to content

Commit de64b6e

Browse files
committed
Fixes the umd.
1 parent 1b5f670 commit de64b6e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

VerbalExpressions.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -392,12 +392,12 @@
392392

393393
// UMD (Universal Module Definition), URL: https://github.com/umdjs/umd
394394
// Supports AMD, CommonJS and the browser
395-
if (typeof root.module !== 'undefined' && root.module.exports) {
395+
if (typeof module !== 'undefined' && module.exports) {
396396
// Node.js Module
397397
module.exports = createVerbalExpression;
398-
} else if (typeof root.define === 'function' && root.define.amd) {
398+
} else if (typeof define === 'function' && define.amd) {
399399
// AMD Module
400-
root.define(MODULE_NAME, [], function define() {
400+
define(MODULE_NAME, [], function define() {
401401
return VerbalExpression;
402402
});
403403
} else {

0 commit comments

Comments
 (0)