##// END OF EJS Templates
Merge pull request #6735 from Carreau/native-map...
Min RK -
r18814:9c3a454f merge
parent child Browse files
Show More
@@ -1337,7 +1337,7 b' define(['
1337 * @method collapse_all_output
1337 * @method collapse_all_output
1338 */
1338 */
1339 Notebook.prototype.collapse_all_output = function () {
1339 Notebook.prototype.collapse_all_output = function () {
1340 $.map(this.get_cells(), function (cell, i) {
1340 this.get_cells().map(function (cell, i) {
1341 if (cell instanceof codecell.CodeCell) {
1341 if (cell instanceof codecell.CodeCell) {
1342 cell.collapse_output();
1342 cell.collapse_output();
1343 }
1343 }
@@ -1367,7 +1367,7 b' define(['
1367 * @method expand_all_output
1367 * @method expand_all_output
1368 */
1368 */
1369 Notebook.prototype.expand_all_output = function () {
1369 Notebook.prototype.expand_all_output = function () {
1370 $.map(this.get_cells(), function (cell, i) {
1370 this.get_cells().map(function (cell, i) {
1371 if (cell instanceof codecell.CodeCell) {
1371 if (cell instanceof codecell.CodeCell) {
1372 cell.expand_output();
1372 cell.expand_output();
1373 }
1373 }
@@ -1397,7 +1397,7 b' define(['
1397 * @method clear_all_output
1397 * @method clear_all_output
1398 */
1398 */
1399 Notebook.prototype.clear_all_output = function () {
1399 Notebook.prototype.clear_all_output = function () {
1400 $.map(this.get_cells(), function (cell, i) {
1400 this.get_cells().map(function (cell, i) {
1401 if (cell instanceof codecell.CodeCell) {
1401 if (cell instanceof codecell.CodeCell) {
1402 cell.clear_output();
1402 cell.clear_output();
1403 }
1403 }
@@ -1426,7 +1426,7 b' define(['
1426 * @method scroll_all_output
1426 * @method scroll_all_output
1427 */
1427 */
1428 Notebook.prototype.scroll_all_output = function () {
1428 Notebook.prototype.scroll_all_output = function () {
1429 $.map(this.get_cells(), function (cell, i) {
1429 this.get_cells().map(function (cell, i) {
1430 if (cell instanceof codecell.CodeCell) {
1430 if (cell instanceof codecell.CodeCell) {
1431 cell.scroll_output();
1431 cell.scroll_output();
1432 }
1432 }
@@ -1455,7 +1455,7 b' define(['
1455 * @method toggle_all_output
1455 * @method toggle_all_output
1456 */
1456 */
1457 Notebook.prototype.toggle_all_output = function () {
1457 Notebook.prototype.toggle_all_output = function () {
1458 $.map(this.get_cells(), function (cell, i) {
1458 this.get_cells().map(function (cell, i) {
1459 if (cell instanceof codecell.CodeCell) {
1459 if (cell instanceof codecell.CodeCell) {
1460 cell.toggle_output();
1460 cell.toggle_output();
1461 }
1461 }
@@ -1485,7 +1485,7 b' define(['
1485 * @method toggle_all_output_scrolling
1485 * @method toggle_all_output_scrolling
1486 */
1486 */
1487 Notebook.prototype.toggle_all_output_scroll = function () {
1487 Notebook.prototype.toggle_all_output_scroll = function () {
1488 $.map(this.get_cells(), function (cell, i) {
1488 this.get_cells().map(function (cell, i) {
1489 if (cell instanceof codecell.CodeCell) {
1489 if (cell instanceof codecell.CodeCell) {
1490 cell.toggle_output_scroll();
1490 cell.toggle_output_scroll();
1491 }
1491 }
@@ -1521,7 +1521,7 b' define(['
1521
1521
1522 var that = this;
1522 var that = this;
1523 utils.requireCodeMirrorMode(modename, function () {
1523 utils.requireCodeMirrorMode(modename, function () {
1524 $.map(that.get_cells(), function(cell, i) {
1524 that.get_cells().map(function(cell, i) {
1525 if (cell.cell_type === 'code'){
1525 if (cell.cell_type === 'code'){
1526 cell.code_mirror.setOption('mode', newmode);
1526 cell.code_mirror.setOption('mode', newmode);
1527 // This is currently redundant, because cm_config ends up as
1527 // This is currently redundant, because cm_config ends up as
General Comments 0
You need to be logged in to leave comments. Login now