Skip to content

Commit 34f1391

Browse files
committed
Fixed AMD module definition.
I just learnt that AMD modules register a function for delayed execution. My mistake was to execute _that_ factory function and passing the lib directly, which caused the issue of not being able to instantiate it for use.
1 parent b410484 commit 34f1391

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/lang.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/lang.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
if (typeof define === 'function' && define.amd) {
1414
// AMD support.
15-
define([], factory());
15+
define([], factory);
1616
} else if (typeof exports === 'object') {
1717
// NodeJS support.
1818
module.exports = factory();

0 commit comments

Comments
 (0)