|
|
Make |context| passed to queryRequiredElement optional
The default is document (which seems reasonable to me).
This remove lots of cruft like queryRequiredElement(document, '.blah').
Also change some queryRequiredElement(document, '#blah') to
getRequiredElement('blah') (which is shorter, simpler, and equivalent).
I think we should additionally change to $('blah') when the result is
immediately used, e.g.
$('blah').addEventListener(...)
is preferred to
getRequiredElement('blah').addEventListener(...)
because there's already going to be a null check. I'll leave that up to
ui/file_manager/OWNERS, though.
R=fukino@chromium.org
BUG= 425626
Committed: https://crrev.com/5057b24914b8899420887593363b89d6c44a4e6b
Cr-Commit-Position: refs/heads/master@{#345925}
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+114 lines, -121 lines) |
Patch |
 |
M |
ui/file_manager/file_manager/common/js/util.js
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ui/file_manager/file_manager/foreground/js/file_manager.js
|
View
|
|
3 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
ui/file_manager/file_manager/foreground/js/file_transfer_controller.js
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ui/file_manager/file_manager/foreground/js/import_controller.js
|
View
|
|
1 chunk |
+5 lines, -6 lines |
0 comments
|
Download
|
 |
M |
ui/file_manager/file_manager/foreground/js/sort_menu_controller.js
|
View
|
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
ui/file_manager/file_manager/foreground/js/toolbar_controller.js
|
View
|
|
1 chunk |
+5 lines, -5 lines |
0 comments
|
Download
|
 |
M |
ui/file_manager/file_manager/foreground/js/tooltip_controller.js
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ui/file_manager/file_manager/foreground/js/ui/banners.js
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ui/file_manager/file_manager/foreground/js/ui/dialog_footer.js
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ui/file_manager/file_manager/foreground/js/ui/directory_tree.js
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ui/file_manager/file_manager/foreground/js/ui/file_manager_ui.js
|
View
|
|
12 chunks |
+17 lines, -17 lines |
0 comments
|
Download
|
 |
M |
ui/file_manager/file_manager/foreground/js/ui/gear_menu.js
|
View
|
|
4 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
 |
M |
ui/file_manager/file_manager/foreground/js/ui/list_container.js
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ui/file_manager/file_manager/foreground/js/ui/progress_center_panel.js
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ui/file_manager/file_manager/foreground/js/ui/search_box.js
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ui/file_manager/gallery/js/gallery.js
|
View
|
|
6 chunks |
+15 lines, -15 lines |
0 comments
|
Download
|
 |
M |
ui/file_manager/gallery/js/image_editor/image_editor.js
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ui/file_manager/gallery/js/slide_mode.js
|
View
|
|
8 chunks |
+17 lines, -17 lines |
0 comments
|
Download
|
 |
M |
ui/file_manager/video_player/js/video_player.js
|
View
|
1
|
14 chunks |
+24 lines, -30 lines |
0 comments
|
Download
|
 |
M |
ui/webui/resources/js/util.js
|
View
|
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
Total messages: 9 (3 generated)
|