     @pages = state.pages
     @currentRoute = state.route
     @pageTitle = state.pageTitle
-    return
-)
 
 module.exports = ApplicationStore

createStore = require('fluxible/utils/createStore')
routesConfig = require('../configs/routes')

ApplicationStore = createStore(
  storeName: 'ApplicationStore'
  handlers: 'CHANGE_ROUTE_SUCCESS': 'handleNavigate'

  initialize: ->
    @currentPageName = null

    @currentPage = page
    @currentRoute = route
    @emitChange()

  updatePageTitle: (title) ->
    @pageTitle = title.pageTitle
    @emitChange()

  getCurrentPageName: ->
    @currentPageName
