Skip to content

Commit

Permalink
fixes robotlegs#71
Browse files Browse the repository at this point in the history
  • Loading branch information
darscan committed Apr 10, 2012
1 parent 434842a commit bb6c2ed
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/robotlegs/bender/bundles/mvcs/impl/Mediator.as
Expand Up @@ -54,22 +54,22 @@ package robotlegs.bender.bundles.mvcs.impl
/* Protected Functions */ /* 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); 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); 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); 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); eventMap.unmapListener(eventDispatcher, eventString, listener, eventClass);
} }
Expand Down

0 comments on commit bb6c2ed

Please sign in to comment.