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

Commit

Permalink
reflect "active" property
Browse files Browse the repository at this point in the history
  • Loading branch information
frankiefu committed Apr 17, 2014
1 parent a7a8128 commit 268497d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions polymer-ui-submenu-item.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<link rel="import" href="../polymer-ui-menu/polymer-ui-menu.html">
<link rel="import" href="../polymer-collapse/polymer-collapse.html">

<polymer-element name="polymer-ui-submenu-item" extends="polymer-ui-menu-item" attributes="active selected selectedItem">
<polymer-element name="polymer-ui-submenu-item" extends="polymer-ui-menu-item" attributes="selected selectedItem">
<template>
<link rel="stylesheet" href="polymer-ui-submenu-item.css">
<polymer-ui-menu-item id="item" src="{{src}}" label="{{label}}" icon="{{icon}}" active?="{{active}}" on-tap="{{activate}}">
Expand All @@ -49,7 +49,9 @@
</template>
<script>
Polymer('polymer-ui-submenu-item', {
active: false,
publish: {
active: {value: false, reflect: true}
},
collapsed: true,
get items() {
return this.$.menu.items;
Expand Down

0 comments on commit 268497d

Please sign in to comment.