| OLD | NEW |
| 1 /* | 1 /* |
| 2 * This file is part of Adblock Plus <http://adblockplus.org/>, | 2 * This file is part of Adblock Plus <http://adblockplus.org/>, |
| 3 * Copyright (C) 2006-2014 Eyeo GmbH | 3 * Copyright (C) 2006-2014 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 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 | 257 |
| 258 /** | 258 /** |
| 259 * Timer used to delay notification handling. | 259 * Timer used to delay notification handling. |
| 260 * @type nsITimer | 260 * @type nsITimer |
| 261 */ | 261 */ |
| 262 let notificationTimer = null; | 262 let notificationTimer = null; |
| 263 | 263 |
| 264 let UI = exports.UI = | 264 let UI = exports.UI = |
| 265 { | 265 { |
| 266 /** | 266 /** |
| 267 * Indicates whether the filter lists were reset. |
| 268 */ |
| 269 filterlistsReinitialized: false, |
| 270 |
| 271 /** |
| 267 * Gets called on startup, initializes UI integration. | 272 * Gets called on startup, initializes UI integration. |
| 268 */ | 273 */ |
| 269 init: function() | 274 init: function() |
| 270 { | 275 { |
| 271 // We should call initDone once both overlay and filters are loaded | 276 // We should call initDone once both overlay and filters are loaded |
| 272 let overlayLoaded = false; | 277 let overlayLoaded = false; |
| 273 let filtersLoaded = false; | 278 let filtersLoaded = false; |
| 274 let sessionRestored = false; | 279 let sessionRestored = false; |
| 275 | 280 |
| 276 // Start loading overlay | 281 // Start loading overlay |
| (...skipping 1656 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1933 ["abp-command-contribute", "command", UI.openContributePage.bind(UI)], | 1938 ["abp-command-contribute", "command", UI.openContributePage.bind(UI)], |
| 1934 ["abp-command-contribute-hide", "command", UI.hideContributeButton.bind(UI)] | 1939 ["abp-command-contribute-hide", "command", UI.hideContributeButton.bind(UI)] |
| 1935 ]; | 1940 ]; |
| 1936 | 1941 |
| 1937 onShutdown.add(function() | 1942 onShutdown.add(function() |
| 1938 { | 1943 { |
| 1939 for (let window in UI.applicationWindows) | 1944 for (let window in UI.applicationWindows) |
| 1940 if (UI.isBottombarOpen(window)) | 1945 if (UI.isBottombarOpen(window)) |
| 1941 UI.toggleBottombar(window); | 1946 UI.toggleBottombar(window); |
| 1942 }); | 1947 }); |
| OLD | NEW |