public void removeEventListener(string type, object listener, bool useCapture) { if (listener is Microsoft.JScript.Closure) { ClosureEventMonitor mon = ClosureEventMonitor.CreateMonitor((Microsoft.JScript.Closure)listener); ((IEventTarget)baseObject).RemoveEventListener(type, new EventListener(mon.EventHandler), useCapture); } }
public static ClosureEventMonitor CreateMonitor(Closure clo) { ClosureEventMonitor mon = (ClosureEventMonitor)monitorMap[clo]; if (mon == null) { mon = new ClosureEventMonitor(clo); monitorMap[clo] = mon; } return mon; }
public static ClosureEventMonitor CreateMonitor(Closure clo) { ClosureEventMonitor mon = (ClosureEventMonitor)monitorMap[clo]; if (mon == null) { mon = new ClosureEventMonitor(clo); monitorMap[clo] = mon; } return(mon); }