mirror of
https://github.com/house-of-abbey/GarminHomeAssistant.git
synced 2025-08-03 10:28:41 +00:00
Tidy
This commit is contained in:
@ -43,9 +43,10 @@ class PinDigit extends WatchUi.Selectable {
|
||||
var height = stepY - (marginY * 2);
|
||||
|
||||
var button = new PinDigitButton({
|
||||
:width => width,
|
||||
:height => height,
|
||||
:label => digit
|
||||
:width => width,
|
||||
:height => height,
|
||||
:label => digit,
|
||||
:touched => false
|
||||
});
|
||||
|
||||
var buttonTouched = new PinDigitButton({
|
||||
@ -89,7 +90,14 @@ class PinDigit extends WatchUi.Selectable {
|
||||
//!   + those required by `Drawable.initialize()`<br>
|
||||
//! ``}`
|
||||
//
|
||||
function initialize(options) {
|
||||
function initialize(
|
||||
options as {
|
||||
:width as Lang.Float,
|
||||
:height as Lang.Float,
|
||||
:label as Lang.Number,
|
||||
:touched as Lang.Boolean
|
||||
}
|
||||
) {
|
||||
Drawable.initialize(options);
|
||||
mText = options[:label];
|
||||
mTouched = options[:touched];
|
||||
|
Reference in New Issue
Block a user