var e:EventDispatcher = new EventDispatcher();
e.on("test", this, this.test1);
e.on("test", this, this.test2);
e.off("test", this, this.test1);
e.off("test", this, this.test2);
console.log(e.hasListener("test"));
----------------------------------------
输出:true