Commit 3d89cd4
committed
Use a more thorough check when exporting.
If an element with ID of `module` is in the document, `module.exports` could be
defined wrongly. This adds a check to ensure `module.exports` exists first.
This commit also removes the `exports` branch which wasn't doing anything,
and also is only used in old environments without `module.exports` support,
such as Narwhal and older versions of Ringo, which are no longer in use.1 parent d899797 commit 3d89cd4
File tree
1 file changed
+1
-4
lines changed- template
1 file changed
+1
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | 14 | | |
18 | 15 | | |
19 | 16 | | |
0 commit comments