Lines Matching refs:handler
25 * @param {!Function|{handleEvent:Function}} handler The handler for the
28 addEventListener: function(type, handler) {
32 this.listeners_[type] = [handler];
35 if (handlers.indexOf(handler) < 0)
36 handlers.push(handler);
43 * @param {!Function|{handleEvent:Function}} handler The handler for the
46 removeEventListener: function(type, handler) {
51 var index = handlers.indexOf(handler);
88 for (var i = 0, handler; handler = handlers[i]; i++) {
89 if (handler.handleEvent)
90 prevented |= handler.handleEvent.call(handler, event) === false;
92 prevented |= handler.call(this, event) === false;