Skip to content

"TypeError: keyboard is undefined" error #157

Description

@nhouse

Hi Mottie,

I'm working on a hobby project using your keyboard and have run into an issue.

I have the following code when the keyboard is being created:

change : function(e, keyboard, el)
{
    checkWord(keyboard.$preview.val());
}

But sometimes Firebug shows the following error in the console:

TypeError: keyboard is undefined

And it points to the line of code inside the change callback.

I think this error is resulting the in the checkWord() function not being run, and it might also be causing another problem as well (when a number of divs are clicked, I have onclick handlers that have $("#keyboard").focus(); in them, but the focus isn't returned to the text input when the error shows up in the console).

Here is my page: http://tinyurl.com/bqddgjl

Do you have any idea why this might be happening?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions