ember-radio-button
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -31,2 +31,6 @@ import Ember from 'ember'; | ||
this.set('classNames', ['ember-radio-button']); | ||
var cssClass = this.get('class'); | ||
if (cssClass) { | ||
this.get('classNames').pushObject(cssClass); | ||
} | ||
} | ||
@@ -33,0 +37,0 @@ }), |
{ | ||
"name": "ember-radio-button", | ||
"description": "provides a radio-button component", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"directories": { | ||
@@ -6,0 +6,0 @@ "doc": "doc", |
@@ -97,3 +97,3 @@ import Ember from 'ember'; | ||
test('it gives the label of a wrapped checkbox a `checked` className', function() { | ||
expect(2); | ||
expect(4); | ||
@@ -103,2 +103,3 @@ var component = this.subject({ | ||
value: 'component-value', | ||
class: 'blue-radio', | ||
template: function() { return 'Blue'; } | ||
@@ -114,3 +115,5 @@ }); | ||
equal(component.$().hasClass('checked'), true); | ||
equal(component.$().hasClass('checked'), true, 'has class `checked`'); | ||
equal(component.$().hasClass('ember-radio-button'), true, 'has class `ember-radio-button`'); | ||
equal(component.$().hasClass('blue-radio'), true, 'has class `blue-radio`'); | ||
}); | ||
@@ -117,0 +120,0 @@ |
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
27280
480
0