Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(67)

Unified Diff: extensions/renderer/resources/event.js

Issue 1928783005: [Extensions] Finish freezing schema (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2704
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « extensions/renderer/resources/binding.js ('k') | extensions/renderer/resources/json_schema.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/resources/event.js
diff --git a/extensions/renderer/resources/event.js b/extensions/renderer/resources/event.js
index 5f0b9129bba37a4b285c336c67fd3256d3f1be82..a6d64cf6fd98ec7eea428be9aaa66c63c390f9cc 100644
--- a/extensions/renderer/resources/event.js
+++ b/extensions/renderer/resources/event.js
@@ -139,7 +139,7 @@
}
}
- var options = opt_eventOptions || {};
+ var options = $Object.assign({}, opt_eventOptions || {});
merge(options, {
// Event supports adding listeners with filters ("filtered events"), for
// example as used in the webNavigation API.
@@ -415,7 +415,7 @@
return {
'type': 'array',
'items': {
- 'choices': typesList.map(function(el) {return {'$ref': el};})
+ 'choices': $Array.map(typesList, function(el) {return {'$ref': el};})
}
};
};
« no previous file with comments | « extensions/renderer/resources/binding.js ('k') | extensions/renderer/resources/json_schema.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698