mirror of
https://github.com/pebble-dev/clay.git
synced 2026-08-29 13:26:59 -04:00
Use int for 'checked' manipulator instead of boolean
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user