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

Side by Side Diff: qunit/common.js

Issue 29338534: Issue 3826 - Filter preference change events (Closed)
Patch Set: Rebased and fixed a typo Created March 19, 2016, 7:48 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
« no previous file with comments | « metadata.common ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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-2016 Eyeo GmbH 3 * Copyright (C) 2006-2016 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 28 matching lines...) Expand all
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 var value = Prefs[pref]; 48 var value = Prefs[pref];
49 if (!(value instanceof ext._EventTarget)) 49 this._pbackup[pref] = value;
50 this._pbackup[pref] = value;
51 } 50 }
52 Prefs.enabled = true; 51 Prefs.enabled = true;
53 } 52 }
54 53
55 function restorePrefs() 54 function restorePrefs()
56 { 55 {
57 for (var pref in this._pbackup) 56 for (var pref in this._pbackup)
58 Prefs[pref] = this._pbackup[pref]; 57 Prefs[pref] = this._pbackup[pref];
59 } 58 }
60 59
61 function executeFirstRunActions() 60 function executeFirstRunActions()
62 { 61 {
63 } 62 }
OLDNEW
« no previous file with comments | « metadata.common ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld