Permalink
Browse files

Removed EventDispatcher inheritance from ContactService and reduced f…

…ailure probability
  • Loading branch information...
1 parent 3305c81 commit e3e1e9ea204c6b2782c07305cfaa8909182c22bc @dcibel committed Apr 25, 2011
Binary file not shown.
@@ -1,7 +1,7 @@
package ttfx.bdx.tdd.contact.service {
import flash.events.IEventDispatcher;
- public interface ContactService extends IEventDispatcher {
+ public interface ContactService {
function getAllContacts(resultHandler:Function, faultHandler:Function):void;
function addContact(firstName:String, lastName:String, phone:String,
@@ -4,7 +4,7 @@ package ttfx.bdx.tdd.contact.service {
import mx.collections.ArrayCollection;
import mx.collections.IList;
- public class ThirdPartyContactService extends EventDispatcher implements ContactService {
+ public class ThirdPartyContactService implements ContactService {
private var nextGeneratedId:int = 0;
private var contacts:ArrayCollection = new ArrayCollection();
@@ -93,7 +93,7 @@ import flash.utils.Timer;
class UglyOperation {
- private var SUCCESS_PROBABILITY:Number = 0.6;
+ private var SUCCESS_PROBABILITY:Number = 0.85;
private var _command:Function;
private var _errorHandler:Function;
Binary file not shown.

0 comments on commit e3e1e9e

Please sign in to comment.