|
|
|
|
@ -847,7 +847,6 @@ define(function (require) {
|
|
|
|
|
*/
|
|
|
|
|
Notebook.prototype.move_cell_up = function (index) {
|
|
|
|
|
console.warn('Notebook.move_cell_up is deprecated as of v4.1 and will be removed in v5.0');
|
|
|
|
|
this.events.trigger('deprecated.Notebook', 'Move cell up will be removed in v5.0');
|
|
|
|
|
|
|
|
|
|
var i = this.index_or_selected(index);
|
|
|
|
|
if (this.is_valid_cell_index(i) && i > 0) {
|
|
|
|
|
@ -874,7 +873,6 @@ define(function (require) {
|
|
|
|
|
*/
|
|
|
|
|
Notebook.prototype.move_cell_down = function (index) {
|
|
|
|
|
console.warn('Notebook.move_cell_down is deprecated as of v4.1 and will be removed in v5.0');
|
|
|
|
|
this.events.trigger('deprecated.Notebook', 'Move cell down will be removed in v5.0');
|
|
|
|
|
|
|
|
|
|
var i = this.index_or_selected(index);
|
|
|
|
|
if (this.is_valid_cell_index(i) && this.is_valid_cell_index(i+1)) {
|
|
|
|
|
|