Trying to do a better job of properly typing DOM objects

This commit is contained in:
Jeff Parsons 2017-06-28 09:41:01 -07:00 • committed by Jeff Parsons
commit 6f9bfa1950
15 changed files with 66 additions and 52 deletions

View file

@ -168,7 +168,7 @@ class Keyboard extends Component {
* @this {Keyboard}
* @param {string|null} sHTMLType is the type of the HTML control (eg, "button", "list", "text", "submit", "textarea", "canvas")
* @param {string} sBinding is the value of the 'binding' parameter stored in the HTML control's "data-value" attribute (eg, "esc")
* @param {Object} control is the HTML control DOM object (eg, HTMLButtonElement)
* @param {HTMLElement} control is the HTML control DOM object (eg, HTMLButtonElement)
* @param {string} [sValue] optional data value
* @return {boolean} true if binding was successful, false if unrecognized binding request
*/
@ -909,7 +909,7 @@ class Keyboard extends Component {
* setSoftKeyState(control, f)
*
* @this {Keyboard}
* @param {Object} control is an HTML control DOM object
* @param {HTMLElement} control is an HTML control DOM object
* @param {boolean} f is true if the key represented by e should be "on", false if "off"
*/
setSoftKeyState(control, f)
@ -1027,7 +1027,7 @@ class Keyboard extends Component {
* setLED(control, f)
*
* @this {Keyboard}
* @param {Object} control is an HTML control DOM object
* @param {HTMLElement} control is an HTML control DOM object
* @param {boolean} f is true if the LED represented by control should be "on", false if "off"
*/
setLED(control, f)