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

Unified Diff: ui/file_manager/file_manager/foreground/elements/files_ripple.js

Issue 2205693006: Quick View: Update UI to meet the latest mock. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nit Created 4 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/elements/files_ripple.js
diff --git a/ui/file_manager/file_manager/foreground/elements/files_ripple.js b/ui/file_manager/file_manager/foreground/elements/files_ripple.js
index 5972bb99b47efd2e023cbd1a61aee3b6a8a1ba86..6b3779a6f5d49609e64f1f8420d6fe6a69dbb678 100644
--- a/ui/file_manager/file_manager/foreground/elements/files_ripple.js
+++ b/ui/file_manager/file_manager/foreground/elements/files_ripple.js
@@ -27,9 +27,10 @@ var FilesRipple = Polymer({
pressAnimationPromise_: null,
attached: function() {
+ var node = assert(this.parentElement || this.parentNode.host);
// Listen events of parent element.
- this.listen(assert(this.parentElement), 'down', 'onDown_');
- this.listen(assert(this.parentElement), 'up', 'onUp_');
+ this.listen(node, 'down', 'onDown_');
+ this.listen(node, 'up', 'onUp_');
},
/**

Powered by Google App Engine
This is Rietveld 408576698