Permalink
Browse files

Simplify loading events.js

  • Loading branch information...
1 parent 32e3094 commit 03dda31b7586e50ea8d9f3f0ca09026cf229e999 @ry ry committed Aug 17, 2010
Showing with 5 additions and 7 deletions.
  1. +5 −7 src/node.js
View
@@ -116,13 +116,6 @@ var module = (function () {
return loadNative(id).exports;
}
- // Event
-
- var eventsFn = process.compile("(function (exports) {" + natives.events + "\n})",
- "events");
- var eventsModule = createInternalModule('events', eventsFn);
- var events = eventsModule.exports;
-
// Modules
@@ -528,6 +521,11 @@ var module = (function () {
})();
+// Load events module in order to access prototype elements on process like
+// process.addListener.
+var events = module.requireNative('events');
+
+
// Signal Handlers
(function() {
var signalWatchers = {};

0 comments on commit 03dda31

Please sign in to comment.