Chromium Code Reviews| Index: ui/file_manager/file_manager/foreground/js/ui/file_table.js |
| diff --git a/ui/file_manager/file_manager/foreground/js/ui/file_table.js b/ui/file_manager/file_manager/foreground/js/ui/file_table.js |
| index 7d62b53bb11136a65ffa37ee0587f40689b9459d..57b7f050a7d169628c6b022431340c6846ce5a63 100644 |
| --- a/ui/file_manager/file_manager/foreground/js/ui/file_table.js |
| +++ b/ui/file_manager/file_manager/foreground/js/ui/file_table.js |
| @@ -494,9 +494,12 @@ FileTable.prototype.shouldStartDragSelection_ = function(event) { |
| return true; |
| // Check if the point is on the column contents or not. |
| - var item = this.list.getListItemByIndex(itemIndex); |
| switch (this.columnModel.columns_[hitColumn.index].id) { |
| case 'name': |
| + var item = this.list.getListItemByIndex(itemIndex); |
|
yawano
2015/03/03 03:15:54
While it's difficult to make this item variable nu
|
| + if (!item) |
| + return false; |
| + |
| var spanElement = item.querySelector('.filename-label span'); |
| var spanRect = spanElement.getBoundingClientRect(); |
| // The this.list.cachedBounds_ object is set by |