Skip to content

Commit

Permalink
Merge pull request #25 from frankiefu/master
Browse files Browse the repository at this point in the history
update components based on changes in g-component
  • Loading branch information
sjmiles committed Oct 29, 2012
2 parents 6696b85 + 85c6cbe commit d34e93b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/g-ratings.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
this.stars = ShadowDOM.localQueryAll(inRoot, ".star");
},
created: function() {
this.valueAttributeChanged();
this.valueChanged();
},
prototype: {
valueAttributeChanged: function() {
valueChanged: function() {
for (var i=0, s; s=this.stars[i]; i++) {
s.classList.toggle('full', i < Number(this.value));
}
Expand Down
4 changes: 2 additions & 2 deletions src/g-selector.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<link rel="components" href="g-component.html">
<link rel="components" href="g-selection.html">
<template>
<g-selection id="selection" atselect="selectionSelect" atdeselect="selectionDeselect"></g-selection>
<g-selection id="selection" on-select="selectionSelect" on-deselect="selectionDeselect"></g-selection>
<content id="items"></content>
</template>
<script>
Expand All @@ -23,7 +23,7 @@
// this.childNodes is LightDOM fallback which works unless we
// are composited (in that case childNodes = <content>, and
// distributeNodes is necessary to find the actual distributions)
return this.$.items.distributedNodes ||
return this.$.items.getDistributedNodes() ||
Array.prototype.slice.call(this.childNodes, 0);
},
_valueToIndex: function(inValue) {
Expand Down

0 comments on commit d34e93b

Please sign in to comment.