Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
Improve rendering speed of core-item without an icon.
Browse files Browse the repository at this point in the history
  • Loading branch information
sorvell committed Sep 12, 2014
1 parent 21883af commit ab64197
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions core-item.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,12 @@

<polymer-element name="core-item" attributes="label icon src" horizontal center layout>
<template>

<link rel="stylesheet" href="core-item.css">

<core-icon src="{{src}}" id="icon" icon="{{icon}}" hidden?="{{!src && !icon}}"></core-icon>
<template if="{{icon || src}}">
<core-icon src="{{src}}" id="icon" icon="{{icon}}" hidden?="{{!src && !icon}}"></core-icon>
</template>
<div id="label">{{label}}</div>
<content></content>

</template>
<script>

Expand Down

0 comments on commit ab64197

Please sign in to comment.