trap undefined timout

This commit is contained in:
Matthias BUSSONNIER 2012-07-22 04:19:21 +02:00
parent d6ebf4d2b1
commit e5ede75fdb

View File

@ -32,12 +32,12 @@ var IPython = (function (IPython) {
.text(msg);
$(this.selector).append(tdiv);
var tmout = Math.max(1000,timeout);
var tmout = Math.max(1500,(timeout||1500));
tdiv.fadeIn(100);
setTimeout(function () {
tdiv.fadeOut(100, function () {tdiv.remove();});
}, timeout)
}, tmout)
};
IPython.NotificationArea = NotificationArea;