12 lines
332 B
JavaScript
12 lines
332 B
JavaScript
export default Ember.Component.extend({
|
|
tagName : "input",
|
|
type : "radio",
|
|
attributeBindings : [ "name", "type", "value", "checked:checked" ],
|
|
click : function() {
|
|
this.set("selection", this.$().val());
|
|
},
|
|
checked : function() {
|
|
return this.get("value") === this.get("selection");
|
|
}.property('selection'),
|
|
});
|