mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-12 11:45:38 +08:00
Removing conditionals that are not needed.
This commit is contained in:
parent
e374ca5ebb
commit
6f4263dc74
@ -525,7 +525,6 @@ var IPython = (function (IPython) {
|
||||
* @param [cell] {Cell} Cell to enter command mode on.
|
||||
**/
|
||||
Notebook.prototype.handle_command_mode = function (cell) {
|
||||
if (cell === null) { return; } // TODO: do I really need this?
|
||||
if (this.mode !== 'command') {
|
||||
cell.command_mode(); // TODO: is this OK here?
|
||||
this.mode = 'command';
|
||||
@ -556,7 +555,6 @@ var IPython = (function (IPython) {
|
||||
* @param [cell] {Cell} Cell to enter edit mode on.
|
||||
**/
|
||||
Notebook.prototype.handle_edit_mode = function (cell) {
|
||||
if (cell === null) { return; } // TODO: do I really need this?
|
||||
if (this.mode !== 'edit') {
|
||||
cell.edit_mode();
|
||||
this.mode = 'edit';
|
||||
|
Loading…
Reference in New Issue
Block a user