From 6c3d40bbcd438d974c8b4356f2453738de7abb9a Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Sun, 28 Sep 2014 14:01:35 -0400 Subject: [PATCH] Update documentation for functions that can return null --- IPython/html/static/notebook/js/notebook.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/IPython/html/static/notebook/js/notebook.js b/IPython/html/static/notebook/js/notebook.js index 522216881..7e17848da 100644 --- a/IPython/html/static/notebook/js/notebook.js +++ b/IPython/html/static/notebook/js/notebook.js @@ -430,7 +430,7 @@ define([ * * @method get_cell * @param {Number} index An index of a cell to retrieve - * @return {Cell} A particular cell + * @return {Cell} Cell or null if no cell was found. */ Notebook.prototype.get_cell = function (index) { var result = null; @@ -446,7 +446,7 @@ define([ * * @method get_next_cell * @param {Cell} cell The provided cell - * @return {Cell} The next cell + * @return {Cell} the next cell or null if no cell was found. */ Notebook.prototype.get_next_cell = function (cell) { var result = null; @@ -462,7 +462,7 @@ define([ * * @method get_prev_cell * @param {Cell} cell The provided cell - * @return {Cell} The previous cell + * @return {Cell} The previous cell or null if no cell was found. */ Notebook.prototype.get_prev_cell = function (cell) { var result = null; @@ -478,7 +478,7 @@ define([ * * @method find_cell_index * @param {Cell} cell The provided cell - * @return {Number} The cell's numeric index + * @return {Number} The cell's numeric index or null if no cell was found. */ Notebook.prototype.find_cell_index = function (cell) { var result = null;