Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #491 from adityab/amd-unsupport

Don't try to support AMD loaders in socket.io
  • Loading branch information...
commit 63f18383647e83ea0fcab4fbac53c25ff95db508 2 parents 4bf6f14 + b5585aa
Guillermo Rauch rauchg authored
Showing with 2 additions and 4 deletions.
  1. +2 −4 bin/builder.js
6 bin/builder.js
View
@@ -85,15 +85,13 @@ var baseTransports = {
/**
* Wrappers for client-side usage.
- * This enables usage in top-level browser window, client-side CommonJS systems and AMD loaders.
+ * This enables usage in top-level browser window and client-side CommonJS systems.
* If doing a node build for server-side client, this wrapper is NOT included.
* @api private
*/
var wrapperPre = "\nvar io = ('undefined' === typeof module ? {} : module.exports);\n(function() {\n";
-var wrapperPost = "\nif (typeof define === \"function\" && define.amd) {" +
- "\n define([], function () { return io; });" +
- "\n}\n})();";
+var wrapperPost = "\n})();";
/**

1 comment on commit 63f1838

lxspine

I have the same problem on using socket.io-client with Dojo. This change solves the problem. Thank you!

Please sign in to comment.
Something went wrong with that request. Please try again.