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

Unified Diff: third_party/polymer/components/iron-menu-behavior/iron-menu-behavior.html

Issue 2113853002: Run bower update (Closed) Base URL: https://github.com/catapult-project/catapult@polymer10-migration
Patch Set: Created 4 years, 6 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: third_party/polymer/components/iron-menu-behavior/iron-menu-behavior.html
diff --git a/third_party/polymer/components/iron-menu-behavior/iron-menu-behavior.html b/third_party/polymer/components/iron-menu-behavior/iron-menu-behavior.html
index 59fd71414297964fd81fe9aa17b94bccc626f54d..46c06c588b06f3d495bc7ed9ac65f4ea9a6214b6 100644
--- a/third_party/polymer/components/iron-menu-behavior/iron-menu-behavior.html
+++ b/third_party/polymer/components/iron-menu-behavior/iron-menu-behavior.html
@@ -128,7 +128,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
var attr = this.attrForItemTitle || 'textContent';
var title = item[attr] || item.getAttribute(attr);
- if (!item.hasAttribute('disabled') && title &&
+ if (!item.hasAttribute('disabled') && title &&
title.trim().charAt(0).toLowerCase() === String.fromCharCode(event.keyCode).toLowerCase()) {
this._setFocusedItem(item);
break;
@@ -209,17 +209,8 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
* detail.
*/
_onIronItemsChanged: function(event) {
- var mutations = event.detail;
- var mutation;
- var index;
-
- for (index = 0; index < mutations.length; ++index) {
- mutation = mutations[index];
-
- if (mutation.addedNodes.length) {
- this._resetTabindices();
- break;
- }
+ if (event.detail.addedNodes.length) {
+ this._resetTabindices();
}
},

Powered by Google App Engine
This is Rietveld 408576698