Make cell be undeletable ONLY when metadata is explicitly false

Jessica B. Hamrick 12 years ago
parent a018cb4299
commit 10d500525a

@ -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;
};
/**

Loading…
Cancel
Save