rem: add: function(element, eventType, eventTarget, capture) { if (!element) { alert(eventType + eventTarget); } if (!element.__eventProcessorId) { element.__eventProcessorId = ++EchoWebCore.EventProcessor._nextId; }  var listenerList; if (element == EchoWebCore.EventProcessor._lastElement && capture == EchoWebCore.EventProcessor._lastCapture) { listenerList = EchoWebCore.EventProcessor._lastListenerList; } else {  var listenerMap = capture ? EchoWebCore.EventProcessor._capturingListenerMap : EchoWebCore.EventProcessor._bubblingListenerMap;   listenerList = listenerMap.map[element.__eventProcessorId]; if (!listenerList) {  listenerList = new EchoCore.ListenerList(); listenerMap.map[element.__eventProcessorId] = listenerList; 
add: add: function(libraryUrl) { if (EchoWebCore.Library._loadedLibraries[libraryUrl]) {  return; 
context:     add: function(element, eventType, eventTarget, capture) {        if (!element) {            alert(eventType + eventTarget);        }        if (!element.__eventProcessorId) {            element.__eventProcessorId = ++EchoWebCore.EventProcessor._nextId;        }            var listenerList;        if (element == EchoWebCore.EventProcessor._lastElement && capture == EchoWebCore.EventProcessor._lastCapture) {            listenerList = EchoWebCore.EventProcessor._lastListenerList;         } else {            // Obtain correct id->ListenerList mapping based on capture parameter.            var listenerMap = capture ? EchoWebCore.EventProcessor._capturingListenerMap                                       : EchoWebCore.EventProcessor._bubblingListenerMap;                        // Obtain ListenerList based on element id.                                          listenerList = listenerMap.map[element.__eventProcessorId];            if (!listenerList) {                // Create new ListenerList if none exists.                listenerList = new EchoCore.ListenerList();                listenerMap.map[element.__eventProcessorId] = listenerList;            }                        EchoWebCore.EventProcessor._lastElement = element;            EchoWebCore.EventProcessor._lastCapture = capture;            EchoWebCore.EventProcessor._lastListenerList = listenerList;        }            // Add event handler to the ListenerList.        listenerList.addListener(eventType, eventTarget);            // Register event listener on DOM element.        // FIXME...not handling multiple listeners of same type!        EchoWebCore.DOM.addEventListener(element, eventType, EchoWebCore.EventProcessor._processEvent, false);    },
meta: 600	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/600/2462b2089463d3034e6da4ad41b2a73396957842/WebCore.js/clean/src/webcontainer/java/nextapp/echo/webcontainer/resource/js/WebCore.js