Lines Matching refs:eventName
65 addEvent: function(eventName, callback) { argument
75 storeCallback(eventName, callback, target_id);
78 if (eventName != 'ready') {
79 postMessage('addEventListener', eventName, element);
81 else if (eventName == 'ready' && isReady) {
93 removeEvent: function(eventName) { argument
101 removed = removeCallback(eventName, target_id);
104 if (eventName != 'ready' && removed) {
105 postMessage('removeEventListener', eventName, element);
200 function storeCallback(eventName, callback, target_id) { argument
205 eventCallbacks[target_id][eventName] = callback;
208 eventCallbacks[eventName] = callback;
215 function getCallback(eventName, target_id) { argument
217 return eventCallbacks[target_id][eventName];
220 return eventCallbacks[eventName];
224 function removeCallback(eventName, target_id) { argument
226 if (!eventCallbacks[target_id][eventName]) {
229 eventCallbacks[target_id][eventName] = null;
232 if (!eventCallbacks[eventName]) {
235 eventCallbacks[eventName] = null;