Summary description for ClosureEventMonitor.
Exemplo n.º 1
0
 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);
     }
 }
Exemplo n.º 2
0
 public static ClosureEventMonitor CreateMonitor(Closure clo)
 {
     ClosureEventMonitor mon = (ClosureEventMonitor)monitorMap[clo];
       if (mon == null)
       {
     mon = new ClosureEventMonitor(clo);
     monitorMap[clo] = mon;
       }
       return mon;
 }
Exemplo n.º 3
0
        public static ClosureEventMonitor CreateMonitor(Closure clo)
        {
            ClosureEventMonitor mon = (ClosureEventMonitor)monitorMap[clo];

            if (mon == null)
            {
                mon             = new ClosureEventMonitor(clo);
                monitorMap[clo] = mon;
            }
            return(mon);
        }