Show More
@@ -507,7 +507,7 b' casper.is_only_cell_edit = function(index) {' | |||||
507 | // Pass null as the index to check if all of the cells are in command mode. |
|
507 | // Pass null as the index to check if all of the cells are in command mode. | |
508 | var cells_length = this.get_cells_length(); |
|
508 | var cells_length = this.get_cells_length(); | |
509 | for (var j = 0; j < cells_length; j++) { |
|
509 | for (var j = 0; j < cells_length; j++) { | |
510 | if (j === i) { |
|
510 | if (j === index) { | |
511 | if (!this.cell_mode_is('edit')) { |
|
511 | if (!this.cell_mode_is('edit')) { | |
512 | return false; |
|
512 | return false; | |
513 | } |
|
513 | } | |
@@ -542,10 +542,10 b' casper.is_only_cell_on = function(i, on_class, off_class) {' | |||||
542 |
|
542 | |||
543 | casper.cell_mode_is = function(index, mode) { |
|
543 | casper.cell_mode_is = function(index, mode) { | |
544 | // Check if a cell is in a specific mode |
|
544 | // Check if a cell is in a specific mode | |
545 |
return this.evaluate(function(i, |
|
545 | return this.evaluate(function(i, m) { | |
546 | var cell = IPython.notebook.get_cell(i); |
|
546 | var cell = IPython.notebook.get_cell(i); | |
547 | if (cell) { |
|
547 | if (cell) { | |
548 |
return cell.mode === m |
|
548 | return cell.mode === m; | |
549 | } |
|
549 | } | |
550 | return false; |
|
550 | return false; | |
551 | }, {i : index, m: mode}); |
|
551 | }, {i : index, m: mode}); |
General Comments 0
You need to be logged in to leave comments.
Login now