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

Side by Side Diff: utils.js

Issue 16067002: Added Safari Support (Closed)
Patch Set: Created Oct. 21, 2013, 8:11 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
1 var backgroundPage = chrome.extension.getBackgroundPage(); 1 var backgroundPage = ext.backgroundPage.getWindow();
2 var require = backgroundPage.require; 2 var require = backgroundPage.require;
3 3
4 var Services = backgroundPage.Services;
4 var Synchronizer = require("synchronizer").Synchronizer; 5 var Synchronizer = require("synchronizer").Synchronizer;
5 var Utils = require("utils").Utils; 6 var Utils = require("utils").Utils;
6 var Prefs = require("prefs").Prefs; 7 var Prefs = require("prefs").Prefs;
7 var FilterStorage = require("filterStorage").FilterStorage; 8 var FilterStorage = require("filterStorage").FilterStorage;
8 var FilterNotifier = require("filterNotifier").FilterNotifier; 9 var FilterNotifier = require("filterNotifier").FilterNotifier;
9 10
10 var subscriptionClasses = require("subscriptionClasses"); 11 var subscriptionClasses = require("subscriptionClasses");
11 var Subscription = subscriptionClasses.Subscription; 12 var Subscription = subscriptionClasses.Subscription;
12 var DownloadableSubscription = subscriptionClasses.DownloadableSubscription; 13 var DownloadableSubscription = subscriptionClasses.DownloadableSubscription;
13 var filterClasses = require("filterClasses"); 14 var filterClasses = require("filterClasses");
14 var Filter = filterClasses.Filter; 15 var Filter = filterClasses.Filter;
15 var BlockingFilter = filterClasses.BlockingFilter; 16 var BlockingFilter = filterClasses.BlockingFilter;
16 var defaultMatcher = require("matcher").defaultMatcher; 17 var defaultMatcher = require("matcher").defaultMatcher;
17 18
18 /** 19 /**
19 * Shortcut for document.getElementById(id) 20 * Shortcut for document.getElementById(id)
20 */ 21 */
21 function E(id) 22 function E(id)
22 { 23 {
23 return document.getElementById(id); 24 return document.getElementById(id);
24 } 25 }
OLDNEW
« chrome/background.js ('K') | « safari/content.js ('k') | webrequest.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld