-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Separate the results of the checkboxgroup manipulator with a zero. #21
Conversation
@gregoiresage Does this work for you? |
I will try when I'll go back from holidays Saturday.
|
Actually I wonder if maybe a |
@matthewtole what are your thoughts on the separator to use. I'd like to recycle this format for something like this: #4 in the future hence my concern over color values |
I think that you're putting the solution to the problem in the wrong place. Instead of muddling up the results of the |
So in here https://github.com/pebble/clay/blob/master/src/scripts/lib/clay-config.js#L161 do something like switch(typeof _settings[appKey]) {
case 'array':
_settings[appKey] = Utils.addSeparators(item.get(), 0);
break;
default:
_settings[appKey] = item.get();
break;
}
|
…ups-return-value
…e compatible with sendAppMessage
fa59ea9
to
271a0d1
Compare
@matthewtole after discussing with @gregoiresage we have found that only string arrays needed to be split up with zeros. Number arrays will be sent as is. This will pave the way for future changes where we might want to send different types of arrays. Also arrays that have booleans in them will now be converted to ones and zeros. |
Sounds good to me. 👍 |
…ups-return-value # Conflicts: # test/spec/lib/manipulators.js
Separate the results of the checkboxgroup manipulator with a zero.
Fixes #13