@@ -358,7 +358,10 @@ MM.Item.prototype.fromJSON = function(data) {
358
358
if ( data . side ) { this . _side = data . side ; }
359
359
if ( data . color ) { this . _color = data . color ; }
360
360
if ( data . value ) { this . _value = data . value ; }
361
- if ( data . status ) { this . _status = data . status ; }
361
+ if ( data . status ) {
362
+ this . _status = data . status ;
363
+ if ( this . _status == "maybe" ) { this . _status = "computed" ; }
364
+ }
362
365
if ( data . collapsed ) { this . collapse ( ) ; }
363
366
if ( data . layout ) { this . _layout = MM . Layout . getById ( data . layout ) ; }
364
367
if ( data . shape ) { this . setShape ( MM . Shape . getById ( data . shape ) ) ; }
@@ -683,7 +686,7 @@ MM.Item.prototype._updateStatus = function() {
683
686
this . _dom . status . style . display = "" ;
684
687
685
688
var status = this . _status ;
686
- if ( this . _status == "maybe " ) {
689
+ if ( this . _status == "computed " ) {
687
690
var childrenStatus = this . _children . every ( function ( child ) {
688
691
return ( child . getComputedStatus ( ) !== false ) ;
689
692
} ) ;
@@ -1803,13 +1806,13 @@ MM.Command.No.execute = function() {
1803
1806
MM . App . action ( action ) ;
1804
1807
}
1805
1808
1806
- MM . Command . Maybe = Object . create ( MM . Command , {
1807
- label : { value : "Maybe " } ,
1808
- keys : { value : [ { charCode : "m " . charCodeAt ( 0 ) , ctrlKey :false } ] }
1809
+ MM . Command . Computed = Object . create ( MM . Command , {
1810
+ label : { value : "Computed " } ,
1811
+ keys : { value : [ { charCode : "c " . charCodeAt ( 0 ) , ctrlKey :false } ] }
1809
1812
} ) ;
1810
- MM . Command . Maybe . execute = function ( ) {
1813
+ MM . Command . Computed . execute = function ( ) {
1811
1814
var item = MM . App . current ;
1812
- var status = ( item . getStatus ( ) == "maybe " ? null : "maybe " ) ;
1815
+ var status = ( item . getStatus ( ) == "computed " ? null : "computed " ) ;
1813
1816
var action = new MM . Action . SetStatus ( item , status ) ;
1814
1817
MM . App . action ( action ) ;
1815
1818
}
@@ -3525,7 +3528,7 @@ MM.UI.Help.prototype._build = function() {
3525
3528
3526
3529
var t = this . _node . querySelector ( ".editing" ) ;
3527
3530
this . _buildRow ( t , "Value" ) ;
3528
- this . _buildRow ( t , "Yes" , "No" , "Maybe " ) ;
3531
+ this . _buildRow ( t , "Yes" , "No" , "Computed " ) ;
3529
3532
this . _buildRow ( t , "Edit" ) ;
3530
3533
this . _buildRow ( t , "Newline" ) ;
3531
3534
this . _buildRow ( t , "Bold" ) ;
0 commit comments