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

Unified Diff: background.js

Issue 8616123: adblockplusopera: Update code from ABP for Chrome (Closed)
Patch Set: Generated locales Created Oct. 22, 2012, 12:34 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 | « no previous file | i18n.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: background.js
===================================================================
--- a/background.js
+++ b/background.js
@@ -1,14 +1,18 @@
-var ElemHide = require("elemHide").ElemHide;
-var DownloadableSubscription = require("subscriptionClasses").DownloadableSubscription;
-var WhitelistFilter = require("filterClasses").WhitelistFilter;
-var Filter = require("filterClasses").Filter;
+with(require("filterClasses"))
+{
+ this.Filter = Filter;
+ this.WhitelistFilter = WhitelistFilter;
+}
+with(require("subscriptionClasses"))
+{
+ this.Subscription = Subscription;
+ this.DownloadableSubscription = DownloadableSubscription;
+}
var FilterNotifier = require("filterNotifier").FilterNotifier;
var FilterStorage = require("filterStorage").FilterStorage;
-var Prefs = require("prefs").Prefs;
+var ElemHide = require("elemHide").ElemHide;
+var defaultMatcher = require("matcher").defaultMatcher;
var Synchronizer = require("synchronizer").Synchronizer;
-var Subscription = require("subscriptionClasses").Subscription;
-var SpecialSubscription = require("subscriptionClasses").SpecialSubscription;
-var Utils = require("utils").Utils;
var isFirstRun = false;
FilterNotifier.addListener(function(action)
« no previous file with comments | « no previous file | i18n.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld