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(); |
} |
}, |