Skip to content

Commit

Permalink
Make client compatible with AMD loaders. Issue #338.
Browse files Browse the repository at this point in the history
  • Loading branch information
sfilatov committed Jul 27, 2012
1 parent 85df087 commit f5d55ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ var baseTransports = {
var wrapperPre = "\nvar io = ('undefined' === typeof module ? {} : module.exports);\n(function() {\n";

var wrapperPost = "\nif (typeof define === \"function\" && define.amd) {" +
"\n define(\"socket.io\", [], function () { return io; });" +
"\n define([], function () { return io; });" +
"\n}\n})();";


Expand Down

0 comments on commit f5d55ba

Please sign in to comment.