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 706 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
717 case "clickhide-close": | 717 case "clickhide-close": |
718 if (clickHideFiltersDialog && msg.remove) | 718 if (clickHideFiltersDialog && msg.remove) |
719 { | 719 { |
720 // Explicitly get rid of currentElement | 720 // Explicitly get rid of currentElement |
721 var element = currentElement.prisoner || currentElement; | 721 var element = currentElement.prisoner || currentElement; |
722 if (element && element.parentNode) | 722 if (element && element.parentNode) |
723 element.parentNode.removeChild(element); | 723 element.parentNode.removeChild(element); |
724 } | 724 } |
725 clickHide_deactivate(); | 725 clickHide_deactivate(); |
726 break; | 726 break; |
727 default: | |
728 sendResponse({}); | |
729 break; | |
730 } | 727 } |
731 }); | 728 }); |
732 | 729 |
733 if (window == window.top) | 730 if (window == window.top) |
734 ext.backgroundPage.sendMessage({type: "report-html-page"}); | 731 ext.backgroundPage.sendMessage({type: "report-html-page"}); |
735 } | 732 } |
OLD | NEW |