Commit 4b9d9fc6 authored by Anand K. Mistry's avatar Anand K. Mistry Committed by Commit Bot

[directorytree] Replace explicit calls to base class handleClick()

Call with super.handleClick() instead to follow the class prototype
chain.

Bug: 1060061
Change-Id: Ib63980978124b62a7a6201f7737b8eda27b1e925
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2094851Reviewed-by: default avatarNoel Gordon <noel@chromium.org>
Commit-Queue: Noel Gordon <noel@chromium.org>
Cr-Commit-Position: refs/heads/master@{#748555}
parent bc531bcc
......@@ -591,7 +591,7 @@ class DirectoryItem extends TreeItem {
* @override
*/
handleClick(e) {
cr.ui.TreeItem.prototype.handleClick.call(this, e);
super.handleClick(e);
if (!this.entry || e.button === 2) {
return;
......@@ -1263,7 +1263,7 @@ class DriveVolumeItem extends VolumeItem {
* @override
*/
handleClick(e) {
VolumeItem.prototype.handleClick.call(this, e);
super.handleClick(e);
this.selectDisplayRoot_(e.target);
......@@ -1629,7 +1629,7 @@ class ShortcutItem extends TreeItem {
* @override
*/
handleClick(e) {
cr.ui.TreeItem.prototype.handleClick.call(this, e);
super.handleClick(e);
// Do not activate with right click.
if (e.button === 2) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment