Commit 39b21a35 authored by campaign's avatar campaign

添加removeSelectedNodes方法

parent 2c4bd20a
......@@ -31,6 +31,15 @@ kity.extendClass( Minder, function () {
} );
this._selectedNodes = [];
},
removeSelectedNodes:function(nodes){
var me = this;
Utils.each( Utils.isArray( nodes ) ? nodes : [ nodes ], function ( i, n ) {
if ( me._selectedNodes.indexOf( n ) === -1 )return;
me._selectedNodes.splice(i,1);
unhighlightNode( me, n );
} );
return this;
},
select: function ( nodes,isToggleSelect ) {
isToggleSelect && this.removeAllSelectedNodes();
var me = this;
......
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