@ -601,7 +601,7 @@ define([
} ;
/ * *
* Get all C ell objects in this notebook .
* Get all c ell objects in this notebook .
*
* @ return { Array } This notebook ' s Cell objects
* /
@ -614,7 +614,7 @@ define([
} ;
/ * *
* Get a Cell objects from this notebook .
* Get a cell object from this notebook .
*
* @ param { integer } index - An index of a cell to retrieve
* @ return { Cell } Cell or null if no cell was found .
@ -721,13 +721,21 @@ define([
return i ;
} ;
/ * *
* Get the selected cells .
*
* @ return { Cell } The selected cells or null if no cell was found .
* /
Notebook . prototype . get _selected _cells = function ( ) {
return this . get _cells ( ) . filter ( function ( cell , index ) { return cell . selected || soft _selected ( cell ) || cell . anchor ; } ) ;
} ;
/ * *
* Get the selected cells .
*
* @ return { array } cell indicies
* /
Notebook . prototype . get _selected _cells _indices = function ( ) {
var result = [ ] ;
this . get _cells ( ) . filter ( function ( cell , index ) {
if ( cell . selected || soft _selected ( cell ) || cell . anchor ) {
@ -737,7 +745,6 @@ define([
return result ;
} ;
/ * *
* Get the currently selected cell .
*
@ -970,7 +977,7 @@ define([
} ;
/ * *
* Ensure either cell , or codemirror is focused . I s none
* Ensure either cell or codemirror is focused . I f none
* is focused , focus the cell .
* /
Notebook . prototype . ensure _focused = function ( ) {
@ -1715,7 +1722,7 @@ define([
} ;
/ * *
* Re - render the output of a CodeC ell.
* Re - render the output of a code c ell.
* /
Notebook . prototype . render _cell _output = function ( code _cell ) {
var cell _data = code _cell . toJSON ( ) ;
@ -1998,7 +2005,7 @@ define([
} ;
/ * *
* Clear the selected CodeC ell' s output area .
* Clear a code c ell' s output area .
*
* @ param { integer } index - cell index
* /
@ -2012,7 +2019,7 @@ define([
} ;
/ * *
* Clear multiple selected CodeC ells' output areas .
* Clear multiple selected code c ells' output areas .
*
* /
Notebook . prototype . clear _cells _outputs = function ( indices ) {