]> git.proxmox.com Git - mirror_xterm.js.git/commitdiff
Remove redundant assignment in constructor
authorDaniel Imms <daimms@microsoft.com>
Sat, 31 Dec 2016 15:07:45 +0000 (07:07 -0800)
committerDaniel Imms <daimms@microsoft.com>
Sat, 31 Dec 2016 15:07:45 +0000 (07:07 -0800)
src/EventEmitter.ts

index 092e439ed63429dc9d8b1b2dc6f4f2ae5ab9a951..4849ed0bd52863de1ed589276f2e9908982d2a7c 100644 (file)
@@ -11,7 +11,7 @@ export class EventEmitter {
   private _events: {[type: string]: ListenerType[]};
 
   constructor() {
-    this._events = this._events || {};
+    this._events = {};
   }
 
   // TODO: Merge addListener and on, no reason for an alias in a private component