From b030772c6a0b610797a1380aa68e389ae0f401aa 2013-05-29 09:19:19 From: Matthias BUSSONNIER Date: 2013-05-29 09:19:19 Subject: [PATCH] document undefined behavior for 0 parameter --- diff --git a/IPython/frontend/html/notebook/static/notebook/js/outputarea.js b/IPython/frontend/html/notebook/static/notebook/js/outputarea.js index 7bf9fac..692e0c6 100644 --- a/IPython/frontend/html/notebook/static/notebook/js/outputarea.js +++ b/IPython/frontend/html/notebook/static/notebook/js/outputarea.js @@ -198,11 +198,12 @@ var IPython = (function (IPython) { * Threshold is a maximum number of lines. If unspecified, defaults to * OutputArea.minimum_scroll_threshold. * - * Negative or null (0) threshold will prevent the OutputArea from ever - * scrolling + * Negative threshold will prevent the OutputArea from ever scrolling. * * @method scroll_if_long - * @param [lines=OutputArea.minimum_scroll_threshold]{Number} Default to `OutputArea.minimum_scroll_threshold` + * + * @param [lines=20]{Number} Default to 20 if not set, + * behavior undefined for value of `0`. * **/ OutputArea.prototype.scroll_if_long = function (lines) {