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

Unified Diff: chrome/ext/common.js

Issue 29371763: Issue 4795 - Use modern JavaScript syntax (Closed)
Patch Set: Created Jan. 13, 2017, 12:11 p.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 | « chrome/ext/background.js ('k') | chrome/ext/content.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/ext/common.js
diff --git a/chrome/ext/common.js b/chrome/ext/common.js
index 2e5c776dccb493894383117b12bebafc411587b5..e6efce2f466f776f42496d610a8f8034dbf9b2ba 100644
--- a/chrome/ext/common.js
+++ b/chrome/ext/common.js
@@ -15,7 +15,6 @@
* along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
*/
-(function()
Sebastian Noack 2017/01/13 12:30:50 As mentioned on the other review, unless you use s
kzar 2017/01/16 04:09:11 Done.
{
/* Message passing */
@@ -26,10 +25,7 @@
ext.backgroundPage = {
sendMessage: chrome.runtime.sendMessage,
- getWindow: function()
- {
- return chrome.extension.getBackgroundPage();
- }
+ getWindow: () => chrome.extension.getBackgroundPage()
Sebastian Noack 2017/01/13 12:30:50 I think for method definitions, the method definit
kzar 2017/01/16 04:09:11 According to this page[1] they are. Also I just te
};
@@ -37,4 +33,4 @@
ext.getURL = chrome.extension.getURL;
ext.i18n = chrome.i18n;
-})();
+}
« no previous file with comments | « chrome/ext/background.js ('k') | chrome/ext/content.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld