ember-radio-button
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -6,4 +6,11 @@ import Ember from 'ember'; | ||
type: 'radio', | ||
attributeBindings: ['type', 'checked', 'value', 'disabled'] | ||
attributeBindings: [ | ||
'type', | ||
'checked', | ||
'value', | ||
'disabled', | ||
'required', | ||
'name' | ||
] | ||
}); | ||
@@ -10,2 +10,3 @@ import Ember from 'ember'; | ||
disabled: false, | ||
scheduleChangedAction: function(){ | ||
@@ -16,10 +17,15 @@ Ember.run.schedule('actions', this, function(){ | ||
}, | ||
checked: function(){ | ||
return this.get('groupValue') === this.get('value'); | ||
}.property('groupValue', 'value'), | ||
click: function(){ | ||
if (this.get('disabled')){ return; } | ||
var value = this.get('value'); | ||
var groupValue = this.get('groupValue'); | ||
this.set('groupValue', value); | ||
if (groupValue !== value){ | ||
@@ -30,2 +36,1 @@ this.scheduleChangedAction(); | ||
}); | ||
{ | ||
"name": "ember-radio-button", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"directories": { | ||
@@ -5,0 +5,0 @@ "doc": "doc", |
@@ -47,4 +47,8 @@ # ember-radio-button | ||
## Installation | ||
## Installing | ||
`npm install ember-radio-button --save-dev` | ||
## Collaborating on this repo | ||
* `git clone` this repository | ||
@@ -51,0 +55,0 @@ * `npm install` |
@@ -6,2 +6,3 @@ import Ember from 'ember'; | ||
numbersDisabled: true, | ||
noDefault: '', | ||
actions: { | ||
@@ -8,0 +9,0 @@ colorChanged: function(color){ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
46812
49
203
72
1