binary or is rare in JS

This commit is contained in:
Matthias Bussonnier 2014-12-23 11:07:43 +01:00
parent 196478b765
commit 1dfdda6e97

View File

@ -175,7 +175,7 @@ define([
*
**/
OutputArea.prototype.scroll_if_long = function (lines) {
var n = lines | OutputArea.minimum_scroll_threshold;
var n = lines || OutputArea.minimum_scroll_threshold;
if(n <= 0){
return;
}