Skip to content

Commit 2d07efc

Browse files
committed
Adds a ; between embedded scripts. See #128
1 parent 9f8b7be commit 2d07efc

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Master
22
* Added `queueSize` option to `initPool` to set the request overfow queue size
33
* Added option to supply `cdnURL` to build script (#133)
4+
* Added `;` between included scripts. Fixes map collections (#128)
45

56
# 2.0.14
67

build.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ function embed(version, scripts, out, fn, optionals) {
200200
// If we've allready fetched the required script, just return it.
201201
if (cachedScripts[fullURL]) {
202202
console.log((' using cached fetch for ' + fullURL).gray);
203-
scriptBody += cachedScripts[fullURL];
203+
scriptBody += cachedScripts[fullURL] + ';';
204204
return next();
205205
}
206206

@@ -227,7 +227,7 @@ function embed(version, scripts, out, fn, optionals) {
227227
}
228228

229229
cachedScripts[fullURL] = body;
230-
scriptBody += body;
230+
scriptBody += body + ';';
231231
next();
232232
});
233233
});

0 commit comments

Comments
 (0)