Commit f3dcb826 authored by techird's avatar techird

dev

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