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

Unified Diff: third_party/polymer/components-chromium/paper-item/paper-item-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-item/paper-item-extracted.js
diff --git a/third_party/polymer/components-chromium/paper-item/paper-item-extracted.js b/third_party/polymer/components-chromium/paper-item/paper-item-extracted.js
new file mode 100644
index 0000000000000000000000000000000000000000..f52f052e8b228eab028d0366b4c33bfbef555376
--- /dev/null
+++ b/third_party/polymer/components-chromium/paper-item/paper-item-extracted.js
@@ -0,0 +1,52 @@
+
+ Polymer('paper-item', {
+
+ publish: {
+
+ /**
+ * The label for the item.
+ *
+ * @attribute label
+ * @type string
+ * @default ''
+ */
+ label: '',
+
+ /**
+ * (optional) The URL of an image for an icon to use in the button.
+ * Should not use `icon` property if you are using this property.
+ *
+ * @attribute iconSrc
+ * @type string
+ * @default ''
+ */
+ iconSrc: '',
+
+ /**
+ * (optional) Specifies the icon name or index in the set of icons
+ * available in the icon set. If using this property, load the icon
+ * set separately where the icon is used. Should not use `src`
+ * if you are using this property.
+ *
+ * @attribute icon
+ * @type string
+ * @default ''
+ */
+ icon: ''
+
+ },
+
+ eventDelegates: {
+ 'down': 'downAction',
+ 'up': 'upAction'
+ },
+
+ downAction: function(e) {
+ this.$.ripple.downAction(e);
+ },
+
+ upAction: function(e) {
+ this.$.ripple.upAction(e);
+ }
+ });
+

Powered by Google App Engine
This is Rietveld 408576698