     @currentPage = page
     @currentRoute = route
     @emitChange()
-    return
+
+  updatePageTitle: (title) ->
+    @pageTitle = title.pageTitle
+    @emitChange()
 
   getCurrentPageName: ->
     @currentPageName

    @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'
    'UPDATE_PAGE_TITLE': 'updatePageTitle'

  initialize: ->
    @currentPageName = null
