Browse files

Minor updates

  • Loading branch information...
1 parent 43bb239 commit 4eebb7e15cf49e8f4a21fb322048419d81f5d6c2 @daffl committed Jan 17, 2012
Showing with 3 additions and 3 deletions.
  1. +2 −2 examples/prototype.js
  2. +1 −1 lib/rubberduck.js
View
4 examples/prototype.js
@@ -21,7 +21,7 @@ emitter.on('before', function(args, context, name) {
});
var donald = new Duck('Donald'),
-darkwin = new Duck('Darkwin');
+darkwing = new Duck('Darkwing');
console.log(donald.getName());
-console.log(darkwin.getName());
+console.log(darkwing.getName());
View
2 lib/rubberduck.js
@@ -54,7 +54,7 @@ var Emitter = exports.Emitter = function(obj) {
this.obj = obj;
}
-Emitter.prototype = new events.EventEmitter();
+Emitter.prototype = Object.create(events.EventEmitter.prototype);
/**
* Punch a method with the given name, with

0 comments on commit 4eebb7e

Please sign in to comment.