##// END OF EJS Templates
Make cell be undeletable ONLY when metadata is explicitly false
Jessica B. Hamrick -
Show More
@@ -422,14 +422,17 b' define(['
422 };
422 };
423
423
424 /**
424 /**
425 * is the cell deletable? (true by default)
425 * is the cell deletable? only false (undeletable) if
426 * metadata.deletable is explicitly false -- everything else
427 * counts as true
428 *
426 * @method is_deletable
429 * @method is_deletable
427 **/
430 **/
428 Cell.prototype.is_deletable = function () {
431 Cell.prototype.is_deletable = function () {
429 if (this.metadata.deletable === undefined) {
432 if (this.metadata.deletable === false) {
430 return true;
433 return false;
431 }
434 }
432 return Boolean(this.metadata.deletable);
435 return true;
433 };
436 };
434
437
435 /**
438 /**
General Comments 0
You need to be logged in to leave comments. Login now