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

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

Issue 2745993002: MD Bookmarks: Update URL router to work in new data binding system (Closed)
Patch Set: calamity@ review 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/toolbar.js
diff --git a/chrome/browser/resources/md_bookmarks/toolbar.js b/chrome/browser/resources/md_bookmarks/toolbar.js
index 816ee10df2fa939755451ed790dd82a235fa02bc..1a37133b9d04ef9f51e5a84ee5a3bd3be110a5fb 100644
--- a/chrome/browser/resources/md_bookmarks/toolbar.js
+++ b/chrome/browser/resources/md_bookmarks/toolbar.js
@@ -82,7 +82,8 @@ Polymer({
*/
onSearchChanged_: function(e) {
var searchTerm = /** @type {string} */ (e.detail);
- this.dispatch(bookmarks.actions.setSearchTerm(searchTerm));
+ if (searchTerm != this.searchTerm_)
+ this.dispatch(bookmarks.actions.setSearchTerm(searchTerm));
},
onSidebarWidthChanged_: function() {
« no previous file with comments | « chrome/browser/resources/md_bookmarks/router.js ('k') | chrome/test/data/webui/md_bookmarks/md_bookmarks_browsertest.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698