Skip to content

Commit 9834c47

Browse files
committed
Add exports
1 parent 7dbcca2 commit 9834c47

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

interface.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
(function(){
1+
(function(exports){
22
var Promise = function() {
33
var callbacks = [];
44
var result = null;
@@ -21,7 +21,7 @@
2121
};
2222

2323

24-
var Interface = function(worker_script) {
24+
exports.Interface = function(worker_script) {
2525
this.worker = new Worker(worker_script);
2626
this.promises = [];
2727
var self = this;
@@ -140,4 +140,4 @@
140140
return prom;
141141
}
142142
}
143-
})();
143+
})(window);

0 commit comments

Comments
 (0)