         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) =>


        #when no results, then call 404 or empty function
        if !result
          (if routes['404'] then a2f(routes['404']) else empty)(current)

  #@note not implemented
  log: false
  #adapter for application @see adapter documentation
  adapter: null

    #@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
    # @event application:hashchange [current_url, prev_url]
    # @event application:404 when url not found
    # @event application:run after running
    create: (routes, fn) ->
      current = prev = window.location.hash

      is_f = (f) ->
