     if Proxy? and typeof Proxy.create =='function'
       _mapRouteWithProxy()
     else
-      if routePattern instanceof RegExp
+      if not routePattern?
+        allRoutes = router.getAllRoutes()
+        for route in allRoutes
+          _route =clone(route)
+          container[route] = (message)=>
+            @send(_route,message)
+      else if routePattern instanceof RegExp
         allRoutes = router.getAllRoutes()
         for route in allRoutes when routePattern.test(route)
           _route =clone(route)

        container[routePattern] = (message)=>@send(routePattern,message)
      container
  # Stop an actor
  # @example How to apply a filter transformation
  #   myActor.stop();
  stop:()->
    @_process = @process
    @process = ()-> throw new Error('Stopped')
  # Start an actor (an actor is automatically started on instantiation)
  # @example How to apply a filter transformation
  #   myActor.stop();
  start:()->
    @process = @_process or @process
  toString:()->

  # So if you use this.attachRoute('someRoute'), you can use this.someRoute(someMessage)
  # which is equivalent to this.send('someRoute',someMessage)
  # if the platform already had implemented Proxy, it return a proxy for all routes
  # @param [Object] routePattern optional , it can be a string, an array of routes to be attached or a regular expression of routes
  # with no arguments mapRoute returns all routes
  # @example How to map routes
  #   myActor.mapRoute('someRoute');
  #   myActor.mapRoute(['someRoute1','someRoute2']);
  #   myActor.mapRoute(/some/g);
  #   myActor.mapRoute();
  mapRoute:(routePattern)->
    that = @
    container={}
