OLD | NEW |
1 | 1 Polymer({ |
2 | 2 |
3 Polymer({ | |
4 | |
5 is: 'iron-icon', | 3 is: 'iron-icon', |
6 | 4 |
7 properties: { | 5 properties: { |
8 | 6 |
9 /** | 7 /** |
10 * The name of the icon to use. The name should be of the form: | 8 * The name of the icon to use. The name should be of the form: |
11 * `iconset_name:icon_name`. | 9 * `iconset_name:icon_name`. |
12 */ | 10 */ |
13 icon: { | 11 icon: { |
14 type: String, | 12 type: String, |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 if (!this._img) { | 65 if (!this._img) { |
68 this._img = document.createElement('img'); | 66 this._img = document.createElement('img'); |
69 this._img.style.width = '100%'; | 67 this._img.style.width = '100%'; |
70 this._img.style.height = '100%'; | 68 this._img.style.height = '100%'; |
71 } | 69 } |
72 this._img.src = this.src; | 70 this._img.src = this.src; |
73 Polymer.dom(this.root).appendChild(this._img); | 71 Polymer.dom(this.root).appendChild(this._img); |
74 } | 72 } |
75 } | 73 } |
76 | 74 |
77 }); | 75 }); |
78 | |
79 | |
OLD | NEW |