diff --git a/IPython/html/static/notebook/js/cell.js b/IPython/html/static/notebook/js/cell.js index d764ab7..e0a8165 100644 --- a/IPython/html/static/notebook/js/cell.js +++ b/IPython/html/static/notebook/js/cell.js @@ -422,14 +422,17 @@ define([ }; /** - * is the cell deletable? (true by default) + * is the cell deletable? only false (undeletable) if + * metadata.deletable is explicitly false -- everything else + * counts as true + * * @method is_deletable **/ Cell.prototype.is_deletable = function () { - if (this.metadata.deletable === undefined) { - return true; + if (this.metadata.deletable === false) { + return false; } - return Boolean(this.metadata.deletable); + return true; }; /**