Skip to content

Commit d34e93b

Browse files
committed
Merge pull request #25 from frankiefu/master
update components based on changes in g-component
2 parents 6696b85 + 85c6cbe commit d34e93b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/g-ratings.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@
2121
this.stars = ShadowDOM.localQueryAll(inRoot, ".star");
2222
},
2323
created: function() {
24-
this.valueAttributeChanged();
24+
this.valueChanged();
2525
},
2626
prototype: {
27-
valueAttributeChanged: function() {
27+
valueChanged: function() {
2828
for (var i=0, s; s=this.stars[i]; i++) {
2929
s.classList.toggle('full', i < Number(this.value));
3030
}

src/g-selector.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<link rel="components" href="g-component.html">
1010
<link rel="components" href="g-selection.html">
1111
<template>
12-
<g-selection id="selection" atselect="selectionSelect" atdeselect="selectionDeselect"></g-selection>
12+
<g-selection id="selection" on-select="selectionSelect" on-deselect="selectionDeselect"></g-selection>
1313
<content id="items"></content>
1414
</template>
1515
<script>
@@ -23,7 +23,7 @@
2323
// this.childNodes is LightDOM fallback which works unless we
2424
// are composited (in that case childNodes = <content>, and
2525
// distributeNodes is necessary to find the actual distributions)
26-
return this.$.items.distributedNodes ||
26+
return this.$.items.getDistributedNodes() ||
2727
Array.prototype.slice.call(this.childNodes, 0);
2828
},
2929
_valueToIndex: function(inValue) {

0 commit comments

Comments
 (0)