| Index: extensions/renderer/resources/event.js
|
| diff --git a/extensions/renderer/resources/event.js b/extensions/renderer/resources/event.js
|
| index bc885025814b31e8eb8e2e1b7f387de3b183593c..24c21e4f10ea44f8b35e4a9d8a04645bd9f5baa3 100644
|
| --- a/extensions/renderer/resources/event.js
|
| +++ b/extensions/renderer/resources/event.js
|
| @@ -226,18 +226,15 @@
|
|
|
| // Dispatches a named event with the given argument array. The args array is
|
| // the list of arguments that will be sent to the event callback.
|
| - function dispatchEvent(name, args, filteringInfo) {
|
| - var listenerIDs = [];
|
| -
|
| - if (filteringInfo)
|
| - listenerIDs = eventNatives.MatchAgainstEventFilter(name, filteringInfo);
|
| -
|
| + // |listenerIds| contains the ids of matching listeners, or is an empty array
|
| + // for all listeners.
|
| + function dispatchEvent(name, args, listenerIds) {
|
| var event = attachedNamedEvents[name];
|
| if (!event)
|
| return;
|
|
|
| var dispatchArgs = function(args) {
|
| - var result = event.dispatch_(args, listenerIDs);
|
| + var result = event.dispatch_(args, listenerIds);
|
| if (result)
|
| logging.DCHECK(!result.validationErrors, result.validationErrors);
|
| return result;
|
|
|