LEFT | RIGHT |
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-2015 Eyeo GmbH | 3 * Copyright (C) 2006-2015 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 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 outerWindowID | 226 outerWindowID |
227 }); | 227 }); |
228 } | 228 } |
229 | 229 |
230 /** | 230 /** |
231 * Retrieves the request data associated with a DOM node. | 231 * Retrieves the request data associated with a DOM node. |
232 * @param {Node} node | 232 * @param {Node} node |
233 * @param {Boolean} noParent if missing or false, the search will extend to the
parent nodes until one is found that has data associated with it | 233 * @param {Boolean} noParent if missing or false, the search will extend to the
parent nodes until one is found that has data associated with it |
234 * @param {Integer} [type] request type to be looking for | 234 * @param {Integer} [type] request type to be looking for |
235 * @param {String} [location] request location to be looking for | 235 * @param {String} [location] request location to be looking for |
236 * @result {[Node, Object]} | 236 * @return {[Node, Object]} |
237 * @static | 237 * @static |
238 */ | 238 */ |
239 RequestNotifier.getDataForNode = function(node, noParent, type, location) | 239 RequestNotifier.getDataForNode = function(node, noParent, type, location) |
240 { | 240 { |
241 while (node) | 241 while (node) |
242 { | 242 { |
243 let data = nodeData.get(node); | 243 let data = nodeData.get(node); |
244 if (typeof data != "undefined") | 244 if (typeof data != "undefined") |
245 { | 245 { |
246 let entry = null; | 246 let entry = null; |
(...skipping 18 matching lines...) Expand all Loading... |
265 node = node.parentNode; | 265 node = node.parentNode; |
266 } | 266 } |
267 else | 267 else |
268 { | 268 { |
269 node = null; | 269 node = null; |
270 } | 270 } |
271 } | 271 } |
272 | 272 |
273 return null; | 273 return null; |
274 }; | 274 }; |
LEFT | RIGHT |