| Index: extensions/renderer/resources/event.js
|
| diff --git a/extensions/renderer/resources/event.js b/extensions/renderer/resources/event.js
|
| index 2cbf48b9ef98cb3918edbc89d03bd2e0ce90b75e..9e7226be14d7007c0867551aeefd11354dbcecac 100644
|
| --- a/extensions/renderer/resources/event.js
|
| +++ b/extensions/renderer/resources/event.js
|
| @@ -241,18 +241,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;
|
|
|