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

Unified Diff: third_party/polymer/components-chromium/paper-progress/paper-progress-extracted.js

Issue 592593002: Inline scripts were extracted from Polymer elements. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: s/echo ""/echo/ Created 6 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/components-chromium/paper-progress/paper-progress-extracted.js
diff --git a/third_party/polymer/components-chromium/paper-progress/paper-progress-extracted.js b/third_party/polymer/components-chromium/paper-progress/paper-progress-extracted.js
new file mode 100644
index 0000000000000000000000000000000000000000..afff824d4125baa606314a9b1f4896d8b3b8e4d2
--- /dev/null
+++ b/third_party/polymer/components-chromium/paper-progress/paper-progress-extracted.js
@@ -0,0 +1,28 @@
+
+
+ Polymer('paper-progress', {
+
+ /**
+ * The number that represents the current secondary progress.
+ *
+ * @attribute secondaryProgress
+ * @type number
+ * @default 0
+ */
+ secondaryProgress: 0,
+
+ step: 0,
+
+ observe: {
+ 'value secondaryProgress min max': 'update'
+ },
+
+ update: function() {
+ this.super();
+ this.secondaryProgress = this.clampValue(this.secondaryProgress);
+ this.secondaryRatio = this.calcRatio(this.secondaryProgress) * 100;
+ }
+
+ });
+
+

Powered by Google App Engine
This is Rietveld 408576698