Permalink
Browse files

removed duplicate example.js

  • Loading branch information...
Jeroen van Duffelen
Jeroen van Duffelen committed Jun 20, 2011
1 parent 04c5408 commit 2256ecc9c9421e737b2b07e2afe8f6bff8f812f0
Showing with 3 additions and 35 deletions.
  1. +0 −31 example.js
  2. +1 −1 index.js
  3. +1 −1 lib/eventemitter2.js
  4. +1 −1 test/example.js
  5. +0 −1 test/test_addlistener.js
View
@@ -1,31 +0,0 @@
-var util = require('util'),
- EventEmitter = require('events').EventEmitter,
- EventEmitter2 = require('./lib/eventemitter2').EventEmitter2,
- EventEmitter2___old = require('./lib/eventemitter2___old').EventEmitter2___old;
-
-
-// This works!!!
-var Test1 = function(){
- this.on('test', function(){console.log('Test1 works')});
- this.emit('test');
-};
-util.inherits(Test1, EventEmitter);
-new Test1();
-
-
-// This works!!!
-var Test2 = function(){
- this.on('test', function(){console.log('Test2 works')});
- this.emit('test');
-};
-util.inherits(Test2, EventEmitter2);
-new Test2();
-
-
-// This is not going to work...
-var Test3 = function(){
- this.on('test', function(){console.log('Test3 works')});
- this.emit('test');
-};
-util.inherits(Test3, EventEmitter2___old);
-new Test3();
View
@@ -1 +1 @@
-module.exports = require('./lib/eventemitter2');
+module.exports = require('./lib/eventemitter2');
View
@@ -318,4 +318,4 @@
throw new Error(fn + ' doesn\'t accept empty namespaces or events starting or ending with a "' + this._eventDelimiter + '" (delimiter) character ');
};
-}(typeof exports === 'undefined' ? window : exports);
+}(typeof exports === 'undefined' ? window : exports);
View
@@ -28,4 +28,4 @@ var Test3 = function(){
this.emit('test');
};
util.inherits(Test3, EventEmitter2___old);
-new Test3();
+new Test3();
View
@@ -111,4 +111,3 @@
};
}(typeof exports === 'undefined' ? window : exports);
-

0 comments on commit 2256ecc

Please sign in to comment.