Commit f3dcb826 authored by techird's avatar techird

dev

parent af01ed18
......@@ -90,8 +90,11 @@ kity.extendClass( Minder, {
}
this._fire( new MinderEvent( "command", eventParams, false ) );
}
// 顶级命令才触发事件
if ( this.isTopCommandExecuting() ) {
if ( !stoped && this.isTopCommandExecuting() ) {
this._popCommandStack();
if ( command.isContentChanged() ) {
this._firePharse( new MinderEvent( 'contentchange' ) );
}
......@@ -99,11 +102,9 @@ kity.extendClass( Minder, {
this._firePharse( new MinderEvent( 'selectionchange' ) );
}
this._firePharse( new MinderEvent( 'interactchange' ) );
}
}
} else {
this._popCommandStack();
}
return result || null;
}
......
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