| LEFT | RIGHT |
| 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-2013 Eyeo GmbH | 3 * Copyright (C) 2006-2013 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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 removeResultListener: function(listener) | 173 removeResultListener: function(listener) |
| 174 { | 174 { |
| 175 let index = this._resultListeners.indexOf(listener); | 175 let index = this._resultListeners.indexOf(listener); |
| 176 if (index !== -1) | 176 if (index !== -1) |
| 177 this._resultListeners.splice(index, 1); | 177 this._resultListeners.splice(index, 1); |
| 178 }, | 178 }, |
| 179 | 179 |
| 180 // Irrelevant for us | 180 // Irrelevant for us |
| 181 highlight: function(highlight, word) {}, | 181 highlight: function(highlight, word) {}, |
| 182 enableSelection: function() {}, | 182 enableSelection: function() {}, |
| 183 focusContent: function() {} | 183 removeSelection: function() {}, |
| 184 focusContent: function() {}, |
| 185 keyPress: function() {} |
| 184 }, | 186 }, |
| 185 | 187 |
| 186 get _lastSearchString() | 188 get _lastSearchString() |
| 187 { | 189 { |
| 188 return this.finder.searchString; | 190 return this.finder.searchString; |
| 189 }, | 191 }, |
| 190 | 192 |
| 191 // This was used before Firefox 27 instead of the "finder" property. | 193 // This was used before Firefox 27 instead of the "finder" property. |
| 192 fastFind: | 194 fastFind: |
| 193 { | 195 { |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 removeEventListener: function(event, handler, capture) | 260 removeEventListener: function(event, handler, capture) |
| 259 { | 261 { |
| 260 E("filtersTree").addEventListener(event, handler, capture); | 262 E("filtersTree").addEventListener(event, handler, capture); |
| 261 }, | 263 }, |
| 262 }; | 264 }; |
| 263 | 265 |
| 264 window.addEventListener("load", function() | 266 window.addEventListener("load", function() |
| 265 { | 267 { |
| 266 FilterSearch.init(); | 268 FilterSearch.init(); |
| 267 }, false); | 269 }, false); |
| LEFT | RIGHT |