Migrate JS modules to CommonJS style.

Closes #1488.
This commit is contained in:
Rafid Aslam
2016-12-04 14:59:56 +07:00
committed by Tim Abbott
parent 4bb6735e77
commit 7856217a63
30 changed files with 122 additions and 0 deletions

View File

@@ -125,3 +125,7 @@ exports.xhr_error_message = function (message, xhr) {
return exports;
}());
if (typeof module !== 'undefined') {
module.exports = channel;
}