THRIFT-4006 Added removeEventListener method to TSocket.as
Client: AS3
Patch: Romain Théry <rthery@ankama.com>
This closes #1140
diff --git a/lib/as3/src/org/apache/thrift/transport/TSocket.as b/lib/as3/src/org/apache/thrift/transport/TSocket.as
index 6891388..c60d711 100644
--- a/lib/as3/src/org/apache/thrift/transport/TSocket.as
+++ b/lib/as3/src/org/apache/thrift/transport/TSocket.as
@@ -127,6 +127,11 @@
{
this.eventDispatcher.addEventListener(type, listener, useCapture, priority, useWeakReference);
}
+
+ public function removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
+ {
+ this.eventDispatcher.removeEventListener(type, listener, useCapture);
+ }
public override function open():void
{