Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(243)

Unified Diff: ui/file_manager/file_manager/foreground/js/tooltip_controller.js

Issue 1304883005: Make |context| passed to queryRequiredElement optional (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: whoops Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/file_manager/file_manager/foreground/js/tooltip_controller.js
diff --git a/ui/file_manager/file_manager/foreground/js/tooltip_controller.js b/ui/file_manager/file_manager/foreground/js/tooltip_controller.js
index a6d7d3b26c9e82acec0d3c0bb19e01fafe9ce15a..d01d827624c55b03a65080bc820bc97a29b23b96 100644
--- a/ui/file_manager/file_manager/foreground/js/tooltip_controller.js
+++ b/ui/file_manager/file_manager/foreground/js/tooltip_controller.js
@@ -15,7 +15,7 @@ function TooltipController(tooltip, targets) {
this.tooltip_ = tooltip;
/** @private {!HTMLElement} */
- this.tooltipLabel_ = queryRequiredElement(tooltip, '#tooltip-label');
+ this.tooltipLabel_ = queryRequiredElement('#tooltip-label', tooltip);
/** @private {!Array<!HTMLElement>} */
this.targets_ = targets;

Powered by Google App Engine
This is Rietveld 408576698