Please sign in to comment.
Fixed history bug. (merged change over from jquery-console project)
o commandResult calls newPromptBox which sets promptText to the empty string o addToHistory uses the value of promptText to push into the history array o thus, whenever commandResult was called before addToHistory, an empty string would be placed on the history array Now, addToHistory is always called before commandResult so it pushes the command to the history array in all cases.
- Loading branch information...