| Index: chrome/browser/resources/md_bookmarks/item.js
|
| diff --git a/chrome/browser/resources/md_bookmarks/item.js b/chrome/browser/resources/md_bookmarks/item.js
|
| index 16a525ba02031a9c608cbe9bcca92dab58bb40d0..4ff4515e9d9f9cd3898547b78a31b6a0467bc46a 100644
|
| --- a/chrome/browser/resources/md_bookmarks/item.js
|
| +++ b/chrome/browser/resources/md_bookmarks/item.js
|
| @@ -44,6 +44,9 @@ Polymer({
|
| this.watch('item_', function(store) {
|
| return store.nodes[this.itemId];
|
| }.bind(this));
|
| + this.watch('isSelectedItem_', function(store) {
|
| + return !!store.selection.items[this.itemId];
|
| + }.bind(this));
|
|
|
| this.updateFromStore();
|
| },
|
| @@ -70,11 +73,8 @@ Polymer({
|
| * @private
|
| */
|
| onClick_: function(e) {
|
| - this.fire('select-item', {
|
| - item: this.item_,
|
| - range: e.shiftKey,
|
| - add: e.ctrlKey,
|
| - });
|
| + this.dispatch(bookmarks.actions.selectItem(
|
| + this.itemId, e.ctrlKey, e.shiftKey, this.getState()));
|
| },
|
|
|
| /**
|
|
|