Permalink
Browse files

fixes #71

  • Loading branch information...
1 parent 434842a commit bb6c2ed0ca9557532c738264a6aa0944cfe16711 @darscan committed Apr 10, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/robotlegs/bender/bundles/mvcs/impl/Mediator.as
@@ -54,22 +54,22 @@ package robotlegs.bender.bundles.mvcs.impl
/* Protected Functions */
/*============================================================================*/
- protected function addViewListener(eventString:String, listener:Function, eventClass:Class):void
+ protected function addViewListener(eventString:String, listener:Function, eventClass:Class = null):void
{
eventMap.mapListener(IEventDispatcher(_viewComponent), eventString, listener, eventClass);
}
- protected function addContextListener(eventString:String, listener:Function, eventClass:Class):void
+ protected function addContextListener(eventString:String, listener:Function, eventClass:Class = null):void
{
eventMap.mapListener(eventDispatcher, eventString, listener, eventClass);
}
- protected function removeViewListener(eventString:String, listener:Function, eventClass:Class):void
+ protected function removeViewListener(eventString:String, listener:Function, eventClass:Class = null):void
{
eventMap.unmapListener(IEventDispatcher(_viewComponent), eventString, listener, eventClass);
}
- protected function removeContextListener(eventString:String, listener:Function, eventClass:Class):void
+ protected function removeContextListener(eventString:String, listener:Function, eventClass:Class = null):void
{
eventMap.unmapListener(eventDispatcher, eventString, listener, eventClass);
}

0 comments on commit bb6c2ed

Please sign in to comment.