Remove event firing changes

Jessica B. Hamrick 10 years ago
parent e5b79d3f4c
commit 0d1eb15888

@ -299,7 +299,6 @@ define([
this.element.removeClass('marked');
}
}
this.events.trigger('marked_changed.Cell', {cell:this, value:value});
}
});

@ -186,10 +186,6 @@ define(function (require) {
Notebook.prototype.bind_events = function () {
var that = this;
this.events.on('marked_changed.Cell', function(){
that.update_marked_status();
});
this.events.on('set_next_input.Notebook', function (event, data) {
if (data.replace) {
data.cell.set_text(data.text);
@ -625,7 +621,6 @@ define(function (require) {
Notebook.prototype.toggle_cells_marked = function(cells) {
cells = cells || this.get_cells();
cells.forEach(function(cell) { cell.marked = !cell.marked; });
this.update_marked_status();
};
/**
@ -635,7 +630,6 @@ define(function (require) {
Notebook.prototype.mark_all_cells = function(cells) {
cells = cells || this.get_cells();
cells.forEach(function(cell) { cell.marked = true; });
this.update_marked_status();
};
/**
@ -644,7 +638,6 @@ define(function (require) {
*/
Notebook.prototype.unmark_all_cells = function(cells) {
this.get_marked_cells(cells).forEach(function(cell) { cell.marked = false; });
this.update_marked_status();
};
/**
@ -736,13 +729,8 @@ define(function (require) {
this.select(selectedIndex);
this.get_selected_cell().marked = true;
this.ensure_focused();
this.update_marked_status()
};
Notebook.prototype.update_marked_status = function(){
// doesn't do anything for now.
}
// Cell selection.
/**
@ -1031,7 +1019,6 @@ define(function (require) {
this.set_dirty(true);
return this;
this.update_marked_status();
};
/**
@ -1075,7 +1062,6 @@ define(function (require) {
this.undelete_index = null;
}
$('#undelete_cell').addClass('disabled');
this.update_marked_status();
};
/**
@ -1499,7 +1485,6 @@ define(function (require) {
new_cell.set_text(texta);
new_cell.marked = cell.marked;
}
this.update_marked_status();
};
/**

Loading…
Cancel
Save