Permalink
Browse files

Refactor event-emitter.js to export 1 thing.

Also, rename events.js to event-emitter.js.
  • Loading branch information...
1 parent 56ce7bc commit 951a04621d0de69136821f4687f00282579cb181 @reid reid committed Feb 13, 2013
View
@@ -23,7 +23,7 @@ var hubClient = require("./client");
var getLocalIP = require("./ip").getLocalIP;
-var YetiEventEmitter2 = require("./events").EventEmitter2;
+var YetiEventEmitter2 = require("./event-emitter");
var good = "";
var bad = "";
View
@@ -4,7 +4,7 @@ var util = require("util");
var path = require("path");
var fs = require("graceful-fs");
var ProtoList = require("proto-list");
-var EventEmitter2 = require("./events").EventEmitter2;
+var EventEmitter2 = require("./event-emitter");
// Node v0.8 & v0.6 APIs.
var existsSync = fs.existsSync || path.existsSync;
@@ -109,4 +109,4 @@ YetiEventEmitter2.prototype.printLogEventsForLevel = function (name, loglevel) {
}
};
-exports.EventEmitter2 = YetiEventEmitter2;
+module.exports = YetiEventEmitter2;
View
@@ -1,7 +1,7 @@
"use strict";
var util = require("util");
-var EventEmitter2 = require("../events").EventEmitter2;
+var EventEmitter2 = require("../event-emitter");
var EventYoshi = require("eventyoshi");
var parseUA = require("./ua");
View
@@ -1,7 +1,7 @@
"use strict";
var util = require("util");
-var EventEmitter2 = require("../events").EventEmitter2;
+var EventEmitter2 = require("../event-emitter");
var EventYoshi = require("eventyoshi");
var Agent = require("./agent");
View
@@ -1,7 +1,7 @@
"use strict";
var util = require("util");
-var EventEmitter2 = require("../events").EventEmitter2;
+var EventEmitter2 = require("../event-emitter");
var EventYoshi = require("eventyoshi");
var parseUA = require("./ua");
View
@@ -1,7 +1,7 @@
"use strict";
var util = require("util");
-var EventEmitter2 = require("../events").EventEmitter2;
+var EventEmitter2 = require("../event-emitter");
var EventYoshi = require("eventyoshi");
var TestServer = require("./test-server");
View
@@ -13,7 +13,7 @@ var urlParser = require("url");
var EchoEcho = require("echoecho").EchoEcho;
-var EventEmitter2 = require("../events").EventEmitter2;
+var EventEmitter2 = require("../event-emitter");
var EventYoshi = require("eventyoshi");
View
@@ -5,7 +5,7 @@
*/
var util = require("util");
-var EventEmitter2 = require("../../lib/events").EventEmitter2;
+var EventEmitter2 = require("../../lib/event-emitter");
var DEBUG = process.env.YETI_MOCK_DEBUG;
@@ -7,7 +7,7 @@ var mocks = require("mocks");
var util = require("util");
var EventYoshi = require("eventyoshi");
-var EventEmitter2 = require("../../lib/events").EventEmitter2;
+var EventEmitter2 = require("../../lib/event-emitter");
function createIpMock(ipAddress) {
return {

0 comments on commit 951a046

Please sign in to comment.