SmilyOrg / quickb2

Automatically exported from code.google.com/p/quickb2
0 stars 0 forks source link

qb2ContactEvent.PRE_SOLVE disabling contact throws "Contacts can only be enabled/disabled for \"pre-solve\" events." even if it is preSolve type #22

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
preSolve throws error in != subPreSolve and viceversa

What steps will reproduce the problem?
addEventListener(qb2ContactEvent.PRE_SOLVE, contactHandler);
private function contactHandler(evt:qb2ContactEvent):void
{
 evt.disableContact();
}       

Error at qb2BaseContactEvent.as line 74

changed to:
private function checkForError():void
{
var isError:Boolean = false;
if ( type != qb2ContactEvent.PRE_SOLVE){
    isError = true;
}
if (isError){
    if (type == qb2SubContactEvent.SUB_PRE_SOLVE){
        isError = false;
    }
}
if ( isError )
throw new Error("Contacts can only be enabled/disabled for \"pre-solve\" 
events.");*/
}

Original issue reported on code.google.com by t.wisnie...@gtempaccount.com on 13 May 2011 at 12:16

GoogleCodeExporter commented 9 years ago
it's fixed on svn, sorry

Original comment by t.wisnie...@gtempaccount.com on 13 May 2011 at 7:58

GoogleCodeExporter commented 9 years ago

Original comment by doug...@gmail.com on 13 May 2011 at 9:00