Skip to content
This repository was archived by the owner on Jul 13, 2020. It is now read-only.

Commit 1701415

Browse files
committed
fetch binding
1 parent 732915e commit 1701415

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/system.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,9 @@
203203
return toAbsoluteURL(this.baseURL, outPath);
204204
},
205205
fetch: function(load) {
206+
var self = this;
206207
return new Promise(function(resolve, reject) {
207-
fetchTextFromURL(toAbsoluteURL(this.baseURL, load.address), function(source) {
208+
fetchTextFromURL(toAbsoluteURL(self.baseURL, load.address), function(source) {
208209
resolve(source);
209210
}, reject);
210211
});

0 commit comments

Comments
 (0)