$ = jQuery
context = window
logger = context.JK.logger

@AppStore = Reflux.createStore(
  {
    listenables: @AppActions

    app: null
    onAppInit: (app) ->
      @app = app
      @trigger(app)


    onOpenExternalUrl: (href) ->

      logger.debug("opening external url #{href}")
      context.JK.popExternalLink(href)
  }
)
