Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Delta Between Two Patch Sets: lib/requestNotifier.js

Issue 29329815: Issue 3274 - Unbreak toolbar icon tooltip (Closed)
Left Patch Set: Created Nov. 6, 2015, 12:36 p.m.
Right Patch Set: Fixed JSDoc comment Created Nov. 25, 2015, 10:32 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « lib/child/requestNotifier.js ('k') | lib/ui.js » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
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
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
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 };
LEFTRIGHT

Powered by Google App Engine
This is Rietveld