Permalink
Browse files

Fixed bug in faultHandlers

The issue was that MATE faultHandlers are not firing and the Flash player runtime error message does not display.
  • Loading branch information...
nahuelforonda committed Mar 18, 2011
1 parent 28ac9f4 commit cf9286f6c13c611bdea80056c5e668b55422705a
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/com/asfusion/mate/actionLists/ServiceHandlers.as
@@ -29,6 +29,7 @@ package com.asfusion.mate.actionLists
import mx.rpc.events.AbstractEvent;
import mx.rpc.events.FaultEvent;
import mx.rpc.events.ResultEvent;
+ import mx.rpc.soap.WebService;
use namespace mate;
/**
@@ -100,7 +101,7 @@ package com.asfusion.mate.actionLists
*/
override protected function fireEvent(event:Event):void
{
- if(AbstractEvent(event).token == token)
+ if(AbstractEvent(event).token == token || ( dispatcher is WebService && event is FaultEvent ) )
{
if(actions && actions.length > 0)
{

0 comments on commit cf9286f

Please sign in to comment.