Summary description for ClosureEventMonitor.
예제 #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);
     }
 }
예제 #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;
 }
예제 #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);
        }