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

Unified Diff: third_party/polymer/v0_8/components-chromium/paper-toggle-button/paper-toggle-button-extracted.js

Issue 1124053009: Pull latest Polymer elements (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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/v0_8/components-chromium/paper-toggle-button/paper-toggle-button-extracted.js
diff --git a/third_party/polymer/v0_8/components-chromium/paper-toggle-button/paper-toggle-button-extracted.js b/third_party/polymer/v0_8/components-chromium/paper-toggle-button/paper-toggle-button-extracted.js
index 7a78c232dae0dab64214747844be01519ef52880..bb28a1103ddc05aa643511729e788580edfe9f8f 100644
--- a/third_party/polymer/v0_8/components-chromium/paper-toggle-button/paper-toggle-button-extracted.js
+++ b/third_party/polymer/v0_8/components-chromium/paper-toggle-button/paper-toggle-button-extracted.js
@@ -3,7 +3,7 @@
is: 'paper-toggle-button',
behaviors: [
- Polymer.PaperButtonBehavior
+ Polymer.PaperRadioButtonBehavior
],
// The custom properties shim is currently an opt-in feature.
@@ -37,7 +37,22 @@
type: Boolean,
value: false,
reflectToAttribute: true,
+ notify: true,
observer: '_checkedChanged'
+ },
+
+ /**
+ * If true, the button toggles the active state with each tap or press
+ * of the spacebar.
+ *
+ * @attribute toggles
+ * @type boolean
+ * @default true
+ */
+ toggles: {
+ type: Boolean,
+ value: true,
+ reflectToAttribute: true
}
},
@@ -47,10 +62,6 @@
//xtrack: '_ontrack'
},
- ready: function() {
- this.toggles = true;
- },
-
// button-behavior hook
_buttonStateChanged: function() {
this.checked = this.active;

Powered by Google App Engine
This is Rietveld 408576698