Index: extensions/renderer/resources/event.js |
diff --git a/extensions/renderer/resources/event.js b/extensions/renderer/resources/event.js |
index a6d64cf6fd98ec7eea428be9aaa66c63c390f9cc..105f7114da0bfdea38c7c32b75924a7f0e0a0064 100644 |
--- a/extensions/renderer/resources/event.js |
+++ b/extensions/renderer/resources/event.js |
@@ -490,17 +490,22 @@ |
ruleFunctionSchemas.getRules.parameters); |
} |
- var Event = utils.expose('Event', EventImpl, { functions: [ |
- 'addListener', |
- 'removeListener', |
- 'hasListener', |
- 'hasListeners', |
- 'dispatchToListener', |
- 'dispatch', |
- 'addRules', |
- 'removeRules', |
- 'getRules' |
- ] }); |
+ function Event() { |
+ privates(Event).constructPrivate(this, arguments); |
+ } |
+ utils.expose(Event, EventImpl, { |
+ functions: [ |
+ 'addListener', |
+ 'removeListener', |
+ 'hasListener', |
+ 'hasListeners', |
+ 'dispatchToListener', |
+ 'dispatch', |
+ 'addRules', |
+ 'removeRules', |
+ 'getRules', |
+ ], |
+ }); |
// NOTE: Event is (lazily) exposed as chrome.Event from dispatcher.cc. |
exports.$set('Event', Event); |