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

Side by Side Diff: third_party/polymer/components-chromium/core-icon-button/core-icon-button-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, 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 unified diff | Download patch
OLDNEW
(Empty)
1
2
3 Polymer('core-icon-button', {
4
5 /**
6 * The URL of an image for the icon. Should not use `icon` property
7 * if you are using this property.
8 *
9 * @attribute src
10 * @type string
11 * @default ''
12 */
13 src: '',
14
15 /**
16 * If true, border is placed around the button to indicate it's
17 * active state.
18 *
19 * @attribute active
20 * @type boolean
21 * @default false
22 */
23 active: false,
24
25 /**
26 * Specifies the icon name or index in the set of icons available in
27 * the icon set. Should not use `src` property if you are using this
28 * property.
29 *
30 * @attribute icon
31 * @type string
32 * @default ''
33 */
34 icon: '',
35
36 activeChanged: function() {
37 this.classList.toggle('selected', this.active);
38 }
39
40 });
41
42
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698