Skip to content

Commit

Permalink
Lift MSG_OUTPUT_NULL handling out of process_inbox
Browse files Browse the repository at this point in the history
  • Loading branch information
jcorbin committed Apr 8, 2012
1 parent 57e5136 commit 60420c6
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions ui/website/repl.js
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,8 @@ function process_outbox() {

var message_handlers = [];

message_handlers[MSG_OUTPUT_NULL] = function(msg) {}; // do nothing

// process the messages in the inbox
function process_inbox() {
// iterate through the messages
Expand All @@ -376,11 +378,6 @@ function process_inbox() {
if (typeof handler == "function")
handler(msg);

// MSG_OUTPUT_NULL
if (type == MSG_OUTPUT_NULL) {
// do nothing
}

// MSG_OUTPUT_READY
if (type == MSG_OUTPUT_READY) {
// remove the initializing message
Expand Down

0 comments on commit 60420c6

Please sign in to comment.