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

Unified Diff: ext/common.js

Issue 29589668: Issue 5938 - Use top-level var for global variables (Closed) Base URL: https://hg.adblockplus.org/adblockpluschrome/
Patch Set: Created Oct. 26, 2017, 8:44 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
Index: ext/common.js
===================================================================
--- a/ext/common.js
+++ b/ext/common.js
@@ -12,19 +12,19 @@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
*/
"use strict";
+var ext = {};
+
{
- window.ext = {};
-
let EventTarget = ext._EventTarget = function()
{
this._listeners = new Set();
};
EventTarget.prototype = {
addListener(listener)
{
this._listeners.add(listener);

Powered by Google App Engine
This is Rietveld