         f = controller[action]
         throw "Action must be a Function" if Object.prototype.toString.call(f) isnt '[object Function]'
         f
-
-      is_custom_event = (str) ->
-        str.indexOf(":") != -1
 
       for url, action of routes when url.indexOf("#") != 0 && url.toString() != "404"
         do (url, action) =>

    #@param [Object] is a routes object where keys is a route and value is a array where
    # first element is a controller name, and second element is a action
    # or it's a function
    # @todo: custom events
    create: (routes) ->
      current = prev = window.location.hash

      is_f = (f) ->

        prev = current
        current = window.location.hash
        result = false

        SiriusApplication.logger("Url change to: #{current}")
        SiriusApplication.adapter.fire(document, "application:hashchange", current, prev)

        #call first matched function
        for part in array_of_routes
          do(part) =>
