チェンジセット 1076

差分発生行の前後
無視リスト:
コミット日時:
2008/04/22 22:10:03 (3 ヶ月前)
コミッタ:
yossy
ログメッセージ:

CommandList?が例外捕捉出来ていないバグ修正 (fixed #13)

ファイル:

凡例:

変更無し
追加
削除
更新
コピー
移動
  • trunk/2.0.x/src/jp/progression/core/commands/CommandList.as

    r1028 r1076  
    4444*//*=======================================================================*/ 
    4545package jp.progression.core.commands { 
     46        import flash.events.Event; 
    4647        import flash.utils.Dictionary; 
    4748        import flash.utils.getQualifiedClassName; 
     
    156157                        // コマンドを取得する 
    157158                        switch ( e.type ) { 
    158                                 case CommandCatchEvent.EXCEPTION        : { _currentCommand = Command( _exceptionList[e.relatedObject] ); break; } 
    159                                 case CommandCatchEvent.ERROR            : { _currentCommand = Command( _eventList[e.relatedObject] ); break; } 
     159                                case CommandCatchEvent.EXCEPTION        : { _currentCommand = Command( _exceptionList[e.relatedObject != null ? e.relatedObject.constructor : null] ); break; } 
     160                                case CommandCatchEvent.ERROR            : { _currentCommand = Command( _eventList[e.relatedObject != null ? Event(e.relatedObject).type : null] ); break; } 
    160161                        } 
    161162                         
  • trunk/2.0.x/tests/jp/progression/core/commands/CommandListTest.as

    r1075 r1076  
    4848                } 
    4949                 
     50                ignore static const catchBySuperClass:String = 'TODO'; 
    5051                test function catchBySuperClass():void 
    5152                {