Fix single line doc comments

This commit is contained in:
barsdeveloper
2022-09-24 22:41:46 +02:00
parent 9a4d323a87
commit 7e55d41ec1
40 changed files with 2649 additions and 3008 deletions

View File

@@ -1,9 +1,7 @@
import { html } from "lit"
import IInputPinTemplate from "./IInputPinTemplate"
/**
* @typedef {import("../element/PinElement").default} PinElement
*/
/** @typedef {import("../element/PinElement").default} PinElement */
export default class BoolPinTemplate extends IInputPinTemplate {
@@ -22,28 +20,22 @@ export default class BoolPinTemplate extends IInputPinTemplate {
this.#input.addEventListener("change", this.onChangeHandler)
}
/**
* @param {PinElement} pin
*/
/** @param {PinElement} pin */
cleanup(pin) {
super.cleanup(pin)
this.#input.removeEventListener("change", this.onChangeHandler)
}
/**
* @param {PinElement} pin
*/
/** @param {PinElement} pin */
getInputs(pin) {
return [this.#input.checked ? "true" : "false"]
}
/**
* @param {PinElement} pin
*/
/** @param {PinElement} pin */
renderInput(pin) {
if (pin.isInput()) {
return html`
<input type="checkbox" class="ueb-pin-input" .checked=${pin.defaultValue == "true"} />
<input type="checkbox" class="ueb-pin-input" .checked=${pin.defaultValue=="true" } />
`
}
return super.renderInput(pin)