FIX: cast integer on truthy value and not only true
allows castInteger="true" to work
This commit is contained in:
parent
5a992fe5e7
commit
86b8f6b238
|
@ -28,7 +28,7 @@ export default Ember.Mixin.create({
|
|||
},
|
||||
|
||||
_castInteger(value) {
|
||||
if (this.get("castInteger") === true && Ember.isPresent(value) && this._isNumeric(value)) {
|
||||
if (this.get("castInteger") && Ember.isPresent(value) && this._isNumeric(value)) {
|
||||
return parseInt(value, 10);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue