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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 delete: function(page) | 54 delete: function(page) |
55 { | 55 { |
56 this._delete(page._id); | 56 this._delete(page._id); |
57 } | 57 } |
58 }; | 58 }; |
59 | 59 |
60 ext._removeFromAllPageMaps = function(pageId) | 60 ext._removeFromAllPageMaps = function(pageId) |
61 { | 61 { |
62 for (var pageMapId in nonEmptyPageMaps) | 62 for (var pageMapId in nonEmptyPageMaps) |
63 nonEmptyPageMaps[pageMapId]._delete(pageId); | 63 nonEmptyPageMaps[pageMapId]._delete(pageId); |
| 64 |
| 65 ext.onPageRemoved._dispatch(function(page) |
| 66 { |
| 67 return page._id == pageId; |
| 68 }); |
64 }; | 69 }; |
| 70 |
| 71 ext.onPageRemoved = new ext._EventTarget(); |
65 })(); | 72 })(); |
OLD | NEW |