Is this a bug in Firebug?

58 views Asked by At

I have the following javascript code:

function vocableToTextFieldClickEventHandler(e) {
if (e.keyCode == 13) { //Enter key
    if (pausedAfterAnswer) {
        pausedAfterAnswer = false;
        goToNextVocable();
        setAnswerNeutral();
        $("#vocableToTextFieldUI").val("");
        return;
    }
    if (textIsOnlyValidCharacters(vocableToTextFieldNode.value) == false){
        displayError("Not valid input!");
    }
    if (answerIsCorrect()) {
        displayAnswerCorrect();
        getActiveVocable().setPreviousAnswerStatus(1);
        pausedAfterAnswer = true;
    } else {
        repeatList.push("x");               //This line
        pausedAfterAnswer = true;
    }
}
}

When adding breakpoint to the line commented "This line", it triggers no matter what e.keyCode is. I've gone through this code snippet so many times to find the error, but can't seem to find it. I was just wondering if this might be a fault in Firebug or if it's just a silly programming error. I've had some strange behaviour from Firebug earlier today that didn't make sense either, so I really don't know if I can trust it.

1

There are 1 answers

0
Pelle On BEST ANSWER

As I can not completely figure this one out, I can atleast conclude that some of the strange behaviour I experienced from Firebug can be fixed by going to the Firebug options and clicking "Reset all Firebug options" and then restarting the browser.