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

Side by Side Diff: third_party/polymer/v1_0/components-chromium/paper-radio-group/paper-radio-group-extracted.js

Issue 1287713002: [MD settings] merge polymer 1.0.11; hack for settings checkbox (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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 unified diff | Download patch
OLDNEW
1 1 Polymer({
2 Polymer({
3 is: 'paper-radio-group', 2 is: 'paper-radio-group',
4 3
5 behaviors: [ 4 behaviors: [
6 Polymer.IronA11yKeysBehavior, 5 Polymer.IronA11yKeysBehavior,
7 Polymer.IronSelectableBehavior 6 Polymer.IronSelectableBehavior
8 ], 7 ],
9 8
10 hostAttributes: { 9 hostAttributes: {
11 role: 'radiogroup', 10 role: 'radiogroup',
12 tabindex: 0 11 tabindex: 0
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 selectNext: function() { 85 selectNext: function() {
87 var length = this.items.length; 86 var length = this.items.length;
88 var newIndex = Number(this._valueToIndex(this.selected)); 87 var newIndex = Number(this._valueToIndex(this.selected));
89 88
90 do { 89 do {
91 newIndex = (newIndex + 1 + length) % length; 90 newIndex = (newIndex + 1 + length) % length;
92 } while (this.items[newIndex].disabled) 91 } while (this.items[newIndex].disabled)
93 92
94 this.select(this._indexToValue(newIndex)); 93 this.select(this._indexToValue(newIndex));
95 }, 94 },
96 }); 95 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698