Show More
@@ -422,14 +422,17 b' define([' | |||
|
422 | 422 | }; |
|
423 | 423 | |
|
424 | 424 | /** |
|
425 |
* is the cell deletable? |
|
|
425 | * is the cell deletable? only false (undeletable) if | |
|
426 | * metadata.deletable is explicitly false -- everything else | |
|
427 | * counts as true | |
|
428 | * | |
|
426 | 429 | * @method is_deletable |
|
427 | 430 | **/ |
|
428 | 431 | Cell.prototype.is_deletable = function () { |
|
429 |
if (this.metadata.deletable === |
|
|
430 |
return |
|
|
432 | if (this.metadata.deletable === false) { | |
|
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