State when the function will be removed

Jonathan Frederic 10 years ago
parent b1ac6f2591
commit 989c7da9d4

@ -846,8 +846,8 @@ define(function (require) {
* @return {Notebook} This notebook
*/
Notebook.prototype.move_cell_up = function (index) {
console.warn('Notebook.move_cell_up is deprecated');
this.events.trigger('deprecated.Notebook', 'Move cell up is deprecated');
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) {
@ -873,8 +873,8 @@ define(function (require) {
* @return {Notebook} This notebook
*/
Notebook.prototype.move_cell_down = function (index) {
console.warn('Notebook.move_cell_down is deprecated');
this.events.trigger('deprecated.Notebook', 'Move cell down is deprecated');
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)) {

Loading…
Cancel
Save