From 73f2b5076776b5c3a0f5319fe95f296d6c0d8fd1 Mon Sep 17 00:00:00 2001 From: Roman Shtylman Date: Mon, 18 Feb 2013 17:19:01 -0500 Subject: [PATCH] require emitter-component only It is confusing to have competing package managers within the same require system. The rest of the code uses npm published modules; this should too. We have tools which can bundle all of this properly without resorting to source code confusion. --- lib/emitter.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/lib/emitter.js b/lib/emitter.js index 142a9bf65..3e5df2bb6 100644 --- a/lib/emitter.js +++ b/lib/emitter.js @@ -1,15 +1,8 @@ - /** * Module dependencies. */ -var Emitter; - -try { - Emitter = require('emitter'); -} catch(e){ - Emitter = require('emitter-component'); -} +var Emitter = require('emitter-component'); /** * Module exports.