| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 }.bind(this)); | 55 }.bind(this)); |
| 56 } | 56 } |
| 57 this.closeDropdownMenu_(); | 57 this.closeDropdownMenu_(); |
| 58 }, | 58 }, |
| 59 | 59 |
| 60 /** @private */ | 60 /** @private */ |
| 61 closeDropdownMenu_: function() { | 61 closeDropdownMenu_: function() { |
| 62 var menu = /** @type {!CrActionMenuElement} */ ( | 62 var menu = /** @type {!CrActionMenuElement} */ ( |
| 63 this.$.dropdown); | 63 this.$.dropdown); |
| 64 menu.close(); | 64 menu.close(); |
| 65 }, |
| 66 |
| 67 /** @private */ |
| 68 isListEmpty_: function() { |
| 69 return this.selectedNode.children.length == 0; |
| 65 } | 70 } |
| 66 }); | 71 }); |
| OLD | NEW |