Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: safari/ext/popup.js

Issue 5721433737003008: Issue 1985 - Replaced __proto__ with Object.create() and Object.getPrototypeOf() (Closed)
Patch Set: Created Feb. 11, 2015, 11:51 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « safari/ext/common.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: safari/ext/popup.js
===================================================================
--- a/safari/ext/popup.js
+++ b/safari/ext/popup.js
@@ -73,12 +73,10 @@
// import ext into the javascript context of the popover. This code might fail,
// when the background page isn't ready yet. So it is important to put it below
// the reloading code above.
- window.ext = {
- __proto__: safari.extension.globalPage.contentWindow.ext,
+ window.ext = Object.create(safari.extension.globalPage.contentWindow.ext);
- closePopup: function()
- {
- safari.self.hide();
- }
+ ext.closePopup = function()
+ {
+ safari.self.hide();
};
})();
« no previous file with comments | « safari/ext/common.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld