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

Unified Diff: third_party/polymer/v1_0/components-chromium/iron-overlay-behavior/iron-overlay-behavior-extracted.js

Issue 1336623003: [MD settings] updating polymer to 1.1.13 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: changed Polymer.IronCheckedElementBehavior name Created 5 years, 3 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/iron-overlay-behavior/iron-overlay-behavior-extracted.js
diff --git a/third_party/polymer/v1_0/components-chromium/iron-overlay-behavior/iron-overlay-behavior-extracted.js b/third_party/polymer/v1_0/components-chromium/iron-overlay-behavior/iron-overlay-behavior-extracted.js
index c73c13171d5f90577cf654a2dac79cb904d83dd0..eaf45191f6fc75a632695305c9cfc6217b8be05b 100644
--- a/third_party/polymer/v1_0/components-chromium/iron-overlay-behavior/iron-overlay-behavior-extracted.js
+++ b/third_party/polymer/v1_0/components-chromium/iron-overlay-behavior/iron-overlay-behavior-extracted.js
@@ -120,17 +120,6 @@ context. You should place this element as a child of `<body>` whenever possible.
},
-/**
- * Fired after the `iron-overlay` opens.
- * @event iron-overlay-opened
- */
-
-/**
- * Fired after the `iron-overlay` closes.
- * @event iron-overlay-closed {{canceled: boolean}} detail -
- * canceled: True if the overlay was canceled.
- */
-
listeners: {
'click': '_onClick',
'iron-resize': '_onIronResize'
@@ -232,7 +221,7 @@ context. You should place this element as a child of `<body>` whenever possible.
// overlay becomes visible here
this.style.display = '';
// force layout to ensure transitions will go
- this.offsetWidth;
+ /** @suppress {suspiciousCode} */ this.offsetWidth;
if (this.opened) {
this._renderOpened();
} else {
@@ -356,7 +345,7 @@ context. You should place this element as a child of `<body>` whenever possible.
this.style.display = 'none';
this.style.transform = this.style.webkitTransform = '';
// force layout to avoid application of transform
- this.offsetWidth;
+ /** @suppress {suspiciousCode} */ this.offsetWidth;
this.style.transition = this.style.webkitTransition = '';
},
@@ -407,6 +396,16 @@ context. You should place this element as a child of `<body>` whenever possible.
}
}
+/**
+ * Fired after the `iron-overlay` opens.
+ * @event iron-overlay-opened
+ */
+
+/**
+ * Fired after the `iron-overlay` closes.
+ * @event iron-overlay-closed
+ * @param {{canceled: (boolean|undefined)}} set to the `closingReason` attribute
+ */
};
/** @polymerBehavior */

Powered by Google App Engine
This is Rietveld 408576698