Use int for 'checked' manipulator instead of boolean

This commit is contained in:
Keegan
2016-02-19 11:24:35 -08:00
parent d3ee516ab1
commit ae47311efa
5 changed files with 14 additions and 12 deletions
+2 -2
View File
@@ -41,10 +41,10 @@ module.exports = {
},
checked: {
get: function() {
return this.$manipulatorTarget.get('checked');
return this.$manipulatorTarget.get('checked') ? 1 : 0;
},
set: function(value) {
this.$manipulatorTarget.set('checked', value);
this.$manipulatorTarget.set('checked', !!value);
return this.trigger('change');
},
disable: disable,