| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 Polymer({ | 5 Polymer({ |
| 6 is: 'bookmarks-list', | 6 is: 'bookmarks-list', |
| 7 | 7 |
| 8 properties: { | 8 properties: { |
| 9 /** @type {BookmarkTreeNode} */ | 9 /** @type {BookmarkTreeNode} */ |
| 10 selectedNode: Object, | 10 selectedNode: Object, |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 /** @private */ | 38 /** @private */ |
| 39 onDeleteTap_: function() { | 39 onDeleteTap_: function() { |
| 40 this.closeDropdownMenu_(); | 40 this.closeDropdownMenu_(); |
| 41 }, | 41 }, |
| 42 | 42 |
| 43 /** @private */ | 43 /** @private */ |
| 44 closeDropdownMenu_: function() { | 44 closeDropdownMenu_: function() { |
| 45 var menu = /** @type {!CrActionMenuElement} */ ( | 45 var menu = /** @type {!CrActionMenuElement} */ ( |
| 46 this.$.dropdown); | 46 this.$.dropdown); |
| 47 menu.close(); | 47 menu.close(); |
| 48 }, |
| 49 |
| 50 /** @private */ |
| 51 isListEmpty_: function() { |
| 52 return this.selectedNode.children.length == 0; |
| 48 } | 53 } |
| 49 }); | 54 }); |
| OLD | NEW |