   history       = false
   routes        = {}
   current_path  = null
-
-  current       = null
-
   forward       = true
 
   ###

"use strict"


Atoms.Url = do (a = Atoms) ->


        route.callback?.call(@, obj)
        break

  _pushState = (properties) ->
    if forward
      Atoms.System.Layout.show properties.article, properties.section
    else
      Atoms.System.Layout.back properties.article, properties.section

  _listen = do ->
    _addRoute "/:article/:section", _pushState
    Atoms.$(window).on "popstate", _change

  return {
    path    : _path
