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

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: Change initialization, add integration test 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 6b89342cf60b2116c08b802315b13bf06ec394c7..4dac0cd7f727f6396e27674118bbf3e049179c91 100644
--- a/chrome/browser/resources/md_bookmarks/toolbar.js
+++ b/chrome/browser/resources/md_bookmarks/toolbar.js
@@ -77,7 +77,8 @@ Polymer({
*/
onSearchChanged_: function(e) {
var searchTerm = /** @type {string} */ (e.detail);
- this.dispatch(bookmarks.actions.setSearchTerm(searchTerm));
+ if (searchTerm != this.searchTerm_)
calamity 2017/03/20 06:34:28 What makes this necessary?
tsergeant 2017/03/21 00:27:07 This is just a small optimisation to avoid firing
+ this.dispatch(bookmarks.actions.setSearchTerm(searchTerm));
},
/** @private */

Powered by Google App Engine
This is Rietveld 408576698