Skip to content

Commit

Permalink
Merge pull request #16 from PolymerElements/use-getIconNames
Browse files Browse the repository at this point in the history
modify demo to use `iconset.getIconNames()` instead of `iconset.iconNames`
  • Loading branch information
cdata committed Jun 10, 2015
2 parents 94cee49 + a3d3c28 commit 418b2c8
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ <h2>{{item.name}}</h2>

<div class="set horizontal wrap layout">

<template is="dom-repeat" items="{{item.iconNames}}">
<template is="dom-repeat" items="{{getIconNames(item)}}">

<span class="container vertical center layout flex-1">
<iron-icon icon="{{item}}"></iron-icon>
Expand All @@ -120,5 +120,13 @@ <h2>{{item.name}}</h2>

</template>

<script>

document.querySelector('[is=dom-bind]').getIconNames = function(iconset) {
return iconset.getIconNames();
};

</script>

</body>
</html>

0 comments on commit 418b2c8

Please sign in to comment.