Skip to content

Commit 3561464

Browse files
committed
Added global vars in comments and removed duplicates
1 parent 8d5d88b commit 3561464

4 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/javascript/string-locator-instawp.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* global instawp_activate, ajaxurl */
12
const MyPlugin = {
23
init( wp ) {
34
'use strict';

src/javascript/string-locator-replace.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// global stringLocatorReplace, fetch, confirm, FormData, Event
1+
/* global stringLocatorReplace, fetch, confirm, FormData, Event */
22
document.addEventListener( 'DOMContentLoaded', function() {
33
const replaceStringField = document.getElementById( 'string-locator-replace-new-string' ),
44
replaceLoopbackCheckbox = document.getElementById( 'string-locator-replace-loopback-check' ),

src/javascript/string-locator-search.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// global string_locator, fetch, FormData
21
document.addEventListener( 'DOMContentLoaded', function() {
32
let stringLocatorSearchActive = false,
43
searchType = '',

src/javascript/string-locator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// global string_locator, fetch, FormData
1+
/* global string_locator */
22
document.addEventListener( 'DOMContentLoaded', function() {
33
let StringLocator,
44
formData;

0 commit comments

Comments
 (0)