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

Delta Between Two Patch Sets: qunit/common.js

Issue 5693109165883392: Issue 2040 - Replaced localStorage with chrome.storage.local (Closed)
Left Patch Set: Rebased Created March 3, 2015, 3:11 p.m.
Right Patch Set: Fixed typo in comment Created April 13, 2015, 10:30 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Right: Side by side diff | Download
« no previous file with change/comment | « metadata.chrome ('k') | safari/ext/background.js » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(no file at all)
1 /* 1 /*
2 * This file is part of Adblock Plus <https://adblockplus.org/>, 2 * This file is part of Adblock Plus <https://adblockplus.org/>,
3 * Copyright (C) 2006-2015 Eyeo GmbH 3 * Copyright (C) 2006-2015 Eyeo GmbH
4 * 4 *
5 * Adblock Plus is free software: you can redistribute it and/or modify 5 * Adblock Plus is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 3 as 6 * it under the terms of the GNU General Public License version 3 as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
8 * 8 *
9 * Adblock Plus is distributed in the hope that it will be useful, 9 * Adblock Plus is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 27 matching lines...) Expand all
38 38
39 function restoreFilterComponents() 39 function restoreFilterComponents()
40 { 40 {
41 } 41 }
42 42
43 function preparePrefs() 43 function preparePrefs()
44 { 44 {
45 this._pbackup = Object.create(null); 45 this._pbackup = Object.create(null);
46 for (var pref in Prefs) 46 for (var pref in Prefs)
47 { 47 {
48 if (typeof Prefs[pref] != "function") 48 var value = Prefs[pref];
49 this._pbackup[pref] = Prefs[pref]; 49 if (!(value instanceof ext._EventTarget))
50 this._pbackup[pref] = value;
50 } 51 }
51 Prefs.enabled = true; 52 Prefs.enabled = true;
52 } 53 }
53 54
54 function restorePrefs() 55 function restorePrefs()
55 { 56 {
56 for (var pref in this._pbackup) 57 for (var pref in this._pbackup)
57 Prefs[pref] = this._pbackup[pref]; 58 Prefs[pref] = this._pbackup[pref];
58 } 59 }
59 60
60 function executeFirstRunActions() 61 function executeFirstRunActions()
61 { 62 {
62 } 63 }
LEFTRIGHT

Powered by Google App Engine
This is Rietveld