Commit 4305a492 authored by Akikonata's avatar Akikonata

change level

parent 658a0978
...@@ -33,7 +33,6 @@ KityMinder.registerModule( "LayoutDefault", function () { ...@@ -33,7 +33,6 @@ KityMinder.registerModule( "LayoutDefault", function () {
minder.getRenderContainer().addShape( iconShape ); minder.getRenderContainer().addShape( iconShape );
iconShape.addShapes( [ circle, plus, dec ] ); iconShape.addShapes( [ circle, plus, dec ] );
this.update(); this.update();
//this.switchState();
}, },
switchState: function () { switchState: function () {
if ( !this._show ) { if ( !this._show ) {
...@@ -554,9 +553,9 @@ KityMinder.registerModule( "LayoutDefault", function () { ...@@ -554,9 +553,9 @@ KityMinder.registerModule( "LayoutDefault", function () {
return items; return items;
} )(); } )();
next = []; next = [];
var layer_nolimit = ( expand_layer < 1 ) || ( !expand_layer ) || false; var layer_nolimit = ( expand_layer < 1 ) || ( !expand_layer ) || false;
//debugger; debugger;
var sub_nolimit = ( expandoptions.sub < 0 ) || false; var sub_nolimit = ( expandoptions.sub < 1 ) || false;
var loopcontinue = function () { var loopcontinue = function () {
return ( layer_nolimit ? ( _buffer.length !== 0 ) : ( _buffer.length !== 0 && cur_layer < expand_layer ) ); return ( layer_nolimit ? ( _buffer.length !== 0 ) : ( _buffer.length !== 0 && cur_layer < expand_layer ) );
}; };
......
...@@ -251,10 +251,10 @@ KityMinder.registerModule( "LayoutModule", function () { ...@@ -251,10 +251,10 @@ KityMinder.registerModule( "LayoutModule", function () {
'appendchildnode': 'appendchildnode', 'appendchildnode': 'appendchildnode',
'removenode': 'removenode' 'removenode': 'removenode'
}, },
expand:{ expand: {
layer:0, layer: 0,
sub:0 sub: 0
} }
} }
}; };
} ); } );
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment