Skip to content

Commit

Permalink
fix requirejs issue
Browse files Browse the repository at this point in the history
  • Loading branch information
JacksonTian committed Apr 21, 2015
1 parent f2581f9 commit b91a0ff
Show file tree
Hide file tree
Showing 3 changed files with 310 additions and 202 deletions.
3 changes: 2 additions & 1 deletion lib/eventproxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@

if (hasDefine) {
// AMD Module or CMD Module
define(definition);
define('eventproxy_debug', function () {return function () {};});
define(['eventproxy_debug'], definition);
} else if (hasExports) {
// Node.js Module
module.exports = definition(require('debug')('eventproxy'));
Expand Down
Loading

0 comments on commit b91a0ff

Please sign in to comment.