…he first line would never reset properly.
o C-c is hard coded for now, may want to refactor it later o Also added my name to and cleaned up the license
o Addresses issue#2: http://github.com/chrisdone/jquery-console/issues/2 o Also added a check to make sure ret is an object before looking for the length property. This fixes a bug in the demo.
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.