Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(983)

Unified Diff: chrome/browser/resources/md_bookmarks/folder_node.js

Issue 2745593004: [MD Bookmarks] Add draggable sidebar. (Closed)
Patch Set: address comments, add window resize handler Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/md_bookmarks/folder_node.js
diff --git a/chrome/browser/resources/md_bookmarks/folder_node.js b/chrome/browser/resources/md_bookmarks/folder_node.js
index 77771c21072877207866c770999dfc94f86d0e9f..9c7be93fa9553245a7c64ae25a3331fa159956c2 100644
--- a/chrome/browser/resources/md_bookmarks/folder_node.js
+++ b/chrome/browser/resources/md_bookmarks/folder_node.js
@@ -60,14 +60,6 @@ Polymer({
return this.isSelectedFolder_ ? 'bookmarks:folder-open' : 'cr:folder';
},
- /**
- * @private
- * @return {string}
- */
- getArrowIcon_: function() {
- return this.isClosed_ ? 'cr:arrow-drop-down' : 'cr:arrow-drop-up';
- },
-
/** @private */
selectFolder_: function() {
this.dispatch(bookmarks.actions.selectFolder(this.item_.id));
@@ -76,10 +68,12 @@ Polymer({
/**
* Occurs when the drop down arrow is tapped.
* @private
+ * @param {!Event}
*/
- toggleFolder_: function() {
+ toggleFolder_: function(e) {
this.dispatch(
bookmarks.actions.changeFolderOpen(this.item_.id, this.isClosed_));
+ e.stopPropagation();
},
/**

Powered by Google App Engine
This is Rietveld 408576698