Skip to content
Browse files

Lift MSG_OUTPUT_NULL handling out of process_inbox

  • Loading branch information...
1 parent 57e5136 commit 60420c6763f55728922c6e0ef3d7ba3559e6717d @jcorbin jcorbin committed Apr 7, 2012
Showing with 2 additions and 5 deletions.
  1. +2 −5 ui/website/repl.js
View
7 ui/website/repl.js
@@ -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
@@ -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

0 comments on commit 60420c6

Please sign in to comment.
Something went wrong with that request. Please try again.