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

Unified Diff: composer.js

Issue 29374674: Issue 4864 - Start using ESLint for adblockpluschrome (Closed)
Patch Set: Use var for ext declarations again Created Feb. 8, 2017, 9:02 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
Index: composer.js
diff --git a/composer.js b/composer.js
index 6c54eff99dd0775af4f9262f61defc7be4dd1ad7..0bc787349215f7e14b70e2d55cf56753cb6b27ab 100644
--- a/composer.js
+++ b/composer.js
@@ -15,6 +15,8 @@
* along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
*/
+/* globals $ */
Sebastian Noack 2017/02/09 01:04:50 I guess we should rather enable the "jquery" envir
kzar 2017/02/20 10:27:30 IMO explicitly adding global comments at the top o
+
"use strict";
let targetPageId = null;
@@ -35,8 +37,7 @@ function onKeyDown(event)
function addFilters()
{
- ext.backgroundPage.sendMessage(
- {
+ ext.backgroundPage.sendMessage({
type: "filters.importRaw",
text: document.getElementById("filters").value
},
@@ -51,10 +52,9 @@ function addFilters()
function closeDialog(success)
{
- ext.backgroundPage.sendMessage(
- {
+ ext.backgroundPage.sendMessage({
type: "forward",
- targetPageId: targetPageId,
+ targetPageId,
payload:
{
type: "composer.content.finished",

Powered by Google App Engine
This is Rietveld