mirror of
https://github.com/pebble-dev/clay.git
synced 2026-08-27 20:36:33 -04:00
This commit is contained in:
+3
-3
@@ -64,11 +64,11 @@ module.exports = [
|
||||
{
|
||||
"type": "slider",
|
||||
"messageKey": "slider",
|
||||
"defaultValue": 15,
|
||||
"defaultValue": 0,
|
||||
"label": "Slider",
|
||||
"description": "This is the description for the slider",
|
||||
"min": 10,
|
||||
"max": 20,
|
||||
"min": 0,
|
||||
"max": 30,
|
||||
"step": 0.25
|
||||
},
|
||||
{
|
||||
|
||||
@@ -86,9 +86,9 @@ function ClayConfig(settings, config, $rootContainer, meta) {
|
||||
// set the value of the item via the manipulator to ensure consistency
|
||||
var value = typeof _settings[_item.messageKey] !== 'undefined' ?
|
||||
_settings[_item.messageKey] :
|
||||
(_item.defaultValue || '');
|
||||
_item.defaultValue;
|
||||
|
||||
clayItem.set(value);
|
||||
clayItem.set(typeof value !== 'undefined' ? value : '');
|
||||
|
||||
$container.add(clayItem.$element);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user