Chromium Code Reviews| Index: ui/webui/resources/js/event_tracker.js |
| diff --git a/ui/webui/resources/js/event_tracker.js b/ui/webui/resources/js/event_tracker.js |
| index d28c5b7ff55130fb542616680ec41a5370762557..be7541f7689bc122e4e897fcd9893528149bafd2 100644 |
| --- a/ui/webui/resources/js/event_tracker.js |
| +++ b/ui/webui/resources/js/event_tracker.js |
| @@ -40,21 +40,21 @@ function EventTracker() { |
| EventTracker.prototype = { |
| /** |
| * Add an event listener - replacement for Node.addEventListener. |
| - * @param {!Node} node The DOM node to add a listener to. |
| + * @param {!EventTarget} target The DOM target to add a listener to. |
| * @param {string} eventType The type of event to subscribe to. |
| * @param {EventListener|Function} listener The listener to add. |
| * @param {boolean=} opt_capture Whether to invoke during the capture phase. |
| */ |
| - add: function(node, eventType, listener, opt_capture) { |
| + add: function(target, eventType, listener, opt_capture) { |
| var capture = !!opt_capture; |
| var h = { |
| - node: node, |
| + node: target, |
|
Dan Beam
2014/09/23 01:42:27
does this property make much sense to you?
Vitaly Pavlenko
2014/09/23 19:30:12
Done.
|
| eventType: eventType, |
| listener: listener, |
| capture: capture, |
| }; |
| this.listeners_.push(h); |
| - node.addEventListener(eventType, listener, capture); |
| + target.addEventListener(eventType, listener, capture); |
| }, |
| /** |