note v4.1 msg spec change in clear_output handler

This commit is contained in:
MinRK 2014-01-31 16:54:30 -08:00
parent 747c9ca29c
commit 1b74ee0c3e

View File

@ -743,7 +743,12 @@ var IPython = (function (IPython) {
OutputArea.prototype.handle_clear_output = function (msg) {
this.clear_output(msg.content.wait);
// msg spec v4 had stdout, stderr, display keys
// v4.1 replaced these with just wait
// The default behavior is the same (stdout=stderr=display=True, wait=False),
// so v4 messages will still be properly handled,
// except for the rarely used clearing less than all output.
this.clear_output(msg.content.wait || false);
};