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

Unified Diff: third_party/polymer/v1_0/components-chromium/paper-icon-button/paper-icon-button-extracted.js

Issue 1401633002: Update Polymer from 1.1.4 -> 1.1.5 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: dzhioev@ review Created 5 years, 2 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/v1_0/components-chromium/paper-icon-button/paper-icon-button-extracted.js
diff --git a/third_party/polymer/v1_0/components-chromium/paper-icon-button/paper-icon-button-extracted.js b/third_party/polymer/v1_0/components-chromium/paper-icon-button/paper-icon-button-extracted.js
index c04bcd6ad3142e1a3d9118018107a132765d6c46..e09004c884998eb96b93c0c45b8c6054dedc15e8 100644
--- a/third_party/polymer/v1_0/components-chromium/paper-icon-button/paper-icon-button-extracted.js
+++ b/third_party/polymer/v1_0/components-chromium/paper-icon-button/paper-icon-button-extracted.js
@@ -1,49 +1,48 @@
+Polymer({
+ is: 'paper-icon-button',
- Polymer({
- is: 'paper-icon-button',
-
- hostAttributes: {
- role: 'button',
- tabindex: '0'
- },
-
- behaviors: [
- Polymer.PaperInkyFocusBehavior
- ],
-
- properties: {
- /**
- * The URL of an image for the icon. If the src property is specified,
- * the icon property should not be.
- */
- src: {
- type: String
+ hostAttributes: {
+ role: 'button',
+ tabindex: '0'
},
- /**
- * Specifies the icon name or index in the set of icons available in
- * the icon's icon set. If the icon property is specified,
- * the src property should not be.
- */
- icon: {
- type: String
+ behaviors: [
+ Polymer.PaperInkyFocusBehavior
+ ],
+
+ properties: {
+ /**
+ * The URL of an image for the icon. If the src property is specified,
+ * the icon property should not be.
+ */
+ src: {
+ type: String
+ },
+
+ /**
+ * Specifies the icon name or index in the set of icons available in
+ * the icon's icon set. If the icon property is specified,
+ * the src property should not be.
+ */
+ icon: {
+ type: String
+ },
+
+ /**
+ * Specifies the alternate text for the button, for accessibility.
+ */
+ alt: {
+ type: String,
+ observer: "_altChanged"
+ }
},
- /**
- * Specifies the alternate text for the button, for accessibility.
- */
- alt: {
- type: String,
- observer: "_altChanged"
- }
- },
-
- _altChanged: function(newValue, oldValue) {
- var label = this.getAttribute('aria-label');
+ _altChanged: function(newValue, oldValue) {
+ var label = this.getAttribute('aria-label');
- // Don't stomp over a user-set aria-label.
- if (!label || oldValue == label) {
- this.setAttribute('aria-label', newValue);
+ // Don't stomp over a user-set aria-label.
+ if (!label || oldValue == label) {
+ this.setAttribute('aria-label', newValue);
+ }
}
- }
- });
+ });

Powered by Google App Engine
This is Rietveld 408576698