예제 #1
0
        /// <summary>Adds an event listener to this document.</summary>
        public void addEventListener(string name, EventListener listener)
        {
            if (Events == null)
            {
                Events = new EventsSet();
            }

            Events.Add(name, listener);
        }
예제 #2
0
        /// <summary>Adds an event listener to this document.</summary>
        public void addEventListener(string name, EventListener listener, bool useCapture)
        {
            if (Events == null)
            {
                Events = new EventsSet();
            }

            listener.Capture = useCapture;
            Events.Add(name, listener);
        }
예제 #3
0
 /// <summary>Clears all events on this document.</summary>
 public void ClearEvents()
 {
     Events = null;
 }